Commit 6a531205 authored by Jose Fonseca's avatar Jose Fonseca

cl: Fix Windows build.

Fixes two trivial issues:

- on Windows large integers like 0xff000001 are not `int` objects, but
  rather `long` objects, so accept both types.

- and the error message caused exception

   TypeError: cannot concatenate 'str' and 'long' objects
parent 14893ffd
......@@ -264,10 +264,10 @@ def getValue(type, val):
getValue(type, val[3]), getValue(type, val[4]))
#At this point, we should have been passed a number
if (isinstance(val, int)):
if (isinstance(val, (int, long))):
return val;
print('Invalid value '+val+' encountered in getValue\n')
print('Invalid value '+repr(val)+' encountered in getValue\n')
def getStrVal(type, val):
return str(getValue(type,val))
......
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