mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Simplify a comparison in cpreproc.c
This commit is contained in:
parent
c0168c8a34
commit
d2c25c7812
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ class Evaluator(object):
|
||||||
result = int(c[2:], 16)
|
result = int(c[2:], 16)
|
||||||
if result > 0xFF:
|
if result > 0xFF:
|
||||||
raise EvalError("Hex literal out of range")
|
raise EvalError("Hex literal out of range")
|
||||||
elif c[1] in 'abfnrtv"?\'\\':
|
elif c[1] in ESCAPES:
|
||||||
result = ESCAPES[c[1]]
|
result = ESCAPES[c[1]]
|
||||||
else:
|
else:
|
||||||
result = int(c[1:], 8)
|
result = int(c[1:], 8)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue