Index: Source/bindings/scripts/idl_definitions.py |
diff --git a/Source/bindings/scripts/idl_definitions.py b/Source/bindings/scripts/idl_definitions.py |
index 896bd4320da7b92e596bf7f2dd5839350dda5e79..9a7509473b4bac75a8763cca5a58148db51411ef 100644 |
--- a/Source/bindings/scripts/idl_definitions.py |
+++ b/Source/bindings/scripts/idl_definitions.py |
@@ -450,7 +450,7 @@ def default_node_to_idl_literal(node): |
raise ValueError('Unsupported string value: %r' % value) |
return IdlLiteral(idl_type, value) |
if idl_type == 'integer': |
- return IdlLiteral(idl_type, int(node.GetProperty('NAME'))) |
+ return IdlLiteral(idl_type, int(node.GetProperty('NAME'), base=0)) |
if idl_type == 'float': |
return IdlLiteral(idl_type, float(node.GetProperty('VALUE'))) |
if idl_type == 'boolean': |