summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Operation.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-10-17 13:52:23 -0700
committerMark Spruiell <mes@zeroc.com>2012-10-17 13:52:23 -0700
commit2e2901a42ce0d99fb51e9406aa2de1a63cdefabe (patch)
tree1dd68e7a5f5cd35a2651f5c5e9f2bb2f42e66194 /py/modules/IcePy/Operation.cpp
parentIceStormLib .depend updates (diff)
downloadice-2e2901a42ce0d99fb51e9406aa2de1a63cdefabe.tar.bz2
ice-2e2901a42ce0d99fb51e9406aa2de1a63cdefabe.tar.xz
ice-2e2901a42ce0d99fb51e9406aa2de1a63cdefabe.zip
Python fixes for Windows
Diffstat (limited to 'py/modules/IcePy/Operation.cpp')
-rw-r--r--py/modules/IcePy/Operation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/Operation.cpp b/py/modules/IcePy/Operation.cpp
index 0729be07898..0cbbee3b77a 100644
--- a/py/modules/IcePy/Operation.cpp
+++ b/py/modules/IcePy/Operation.cpp
@@ -1195,7 +1195,7 @@ IcePy::Operation::convertParam(PyObject* p, int pos)
//
// optional
//
- param->optional = PyObject_IsTrue(PyTuple_GET_ITEM(p, 2));
+ param->optional = PyObject_IsTrue(PyTuple_GET_ITEM(p, 2)) == 1;
//
// tag
@@ -3758,7 +3758,7 @@ IcePy::BlobjectUpcall::response(PyObject* args, const Ice::EncodingVersion&)
}
PyObject* arg = PyTuple_GET_ITEM(args, 0);
- int isTrue = PyObject_IsTrue(arg);
+ bool isTrue = PyObject_IsTrue(arg) == 1;
arg = PyTuple_GET_ITEM(args, 1);