Skip to content

Commit d386b16

Browse files
authored
Merge pull request #236 from facebook/int
Handle integer base automatically
2 parents 713fd15 + fbf9d6e commit d386b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fblldbbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def evaluateIntegerExpression(expression, printErrors=True):
110110
output = output[2:]
111111
elif output.startswith('\\'): # Or as \0 (Dec)
112112
output = output[1:]
113-
return int(output, 16)
113+
return int(output, 0)
114114

115115
def evaluateBooleanExpression(expression, printErrors=True):
116116
return (int(evaluateIntegerExpression('(BOOL)(' + expression + ')', printErrors)) != 0)

0 commit comments

Comments
 (0)