From 8358545598906f014c4a3ccb78890e398ec08be0 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 29 Mar 2016 15:00:48 +0200 Subject: Python VS2015 x64 build fixes --- python/modules/IcePy/Operation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python/modules/IcePy/Operation.cpp') diff --git a/python/modules/IcePy/Operation.cpp b/python/modules/IcePy/Operation.cpp index 01741df2ccb..47dab4af475 100644 --- a/python/modules/IcePy/Operation.cpp +++ b/python/modules/IcePy/Operation.cpp @@ -1035,7 +1035,7 @@ void IcePy::ParamInfo::unmarshaled(PyObject* val, PyObject* target, void* closure) { assert(PyTuple_Check(target)); - long i = reinterpret_cast(closure); + Py_ssize_t i = reinterpret_cast(closure); PyTuple_SET_ITEM(target, i, val); Py_INCREF(val); // PyTuple_SET_ITEM steals a reference. } @@ -1654,7 +1654,7 @@ IcePy::TypedInvocation::unmarshalResults(const pairoptional) { - void* closure = reinterpret_cast(info->pos); + void* closure = reinterpret_cast(static_cast(info->pos)); info->type->unmarshal(is, info, results.get(), closure, false, &info->metaData); } } @@ -1665,7 +1665,7 @@ IcePy::TypedInvocation::unmarshalResults(const pairreturnType && !_op->returnType->optional) { assert(_op->returnType->pos == 0); - void* closure = reinterpret_cast(_op->returnType->pos); + void* closure = reinterpret_cast(static_cast(_op->returnType->pos)); _op->returnType->type->unmarshal(is, _op->returnType, results.get(), closure, false, &_op->metaData); } @@ -1677,7 +1677,7 @@ IcePy::TypedInvocation::unmarshalResults(const pairreadOptional(info->tag, info->type->optionalFormat())) { - void* closure = reinterpret_cast(info->pos); + void* closure = reinterpret_cast(static_cast(info->pos)); info->type->unmarshal(is, info, results.get(), closure, true, &info->metaData); } else -- cgit v1.2.3