aboutsummaryrefslogtreecommitdiff
path: root/generated_tests
diff options
context:
space:
mode:
Diffstat (limited to 'generated_tests')
-rwxr-xr-xgenerated_tests/generate-cl-int-builtins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generated_tests/generate-cl-int-builtins.py b/generated_tests/generate-cl-int-builtins.py
index 5b6eaf61..ae60ad21 100755
--- a/generated_tests/generate-cl-int-builtins.py
+++ b/generated_tests/generate-cl-int-builtins.py
@@ -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))