Commit e6e698e3 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Mantis ticket 608 - properly handle long integers

In the mapping to ctypes, we need to handle both int and long
values - if e.g. someone passes 314L we would have a problem.
parent 4b4a60f6
......@@ -274,7 +274,7 @@ An example for SetLength:
bridgeFunc = getattr(JMP, Clean(self._nodeTypeName) + "_" + self._Caccessor + "_Set" + args.get("postfix", ""))
if isinstance(value, float):
ctypesValue = c_double(value)
elif isinstance(value, int):
elif isinstance(value, (int, long)):
ctypesValue = c_longlong(value)
ctypesValue = value
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment