summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Connection.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-08-21 21:12:23 +0200
committerJose <jose@zeroc.com>2014-08-21 21:12:23 +0200
commit057bb2a0872457a455392c5fe4d7b2729dfdee82 (patch)
tree0cf27382f0c323865f381625855ec52d9d671258 /py/modules/IcePy/Connection.cpp
parentFix SSL configuration test to create Find.keychain (diff)
downloadice-057bb2a0872457a455392c5fe4d7b2729dfdee82.tar.bz2
ice-057bb2a0872457a455392c5fe4d7b2729dfdee82.tar.xz
ice-057bb2a0872457a455392c5fe4d7b2729dfdee82.zip
python minor build fix
Diffstat (limited to 'py/modules/IcePy/Connection.cpp')
-rw-r--r--py/modules/IcePy/Connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/Connection.cpp b/py/modules/IcePy/Connection.cpp
index ba7ef02c510..aea2584be10 100644
--- a/py/modules/IcePy/Connection.cpp
+++ b/py/modules/IcePy/Connection.cpp
@@ -71,10 +71,10 @@ private:
void invoke(const string& methodName, const Ice::ConnectionPtr& con)
{
AdoptThread adoptThread; // Ensure the current thread is able to call into Python.
-
+#ifndef NDEBUG
ConnectionObject* c = reinterpret_cast<ConnectionObject*>(_con);
assert(con == *(c->connection));
-
+#endif
if(!PyObject_HasAttrString(_cb, STRCAST(methodName.c_str())))
{
ostringstream ostr;