Skip to content
Snippets Groups Projects
Commit 263ac638 authored by Richard Henderson's avatar Richard Henderson
Browse files

decodetree: Allow +- to begin a number initializing a field


Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 82bfac1c
No related branches found
No related tags found
No related merge requests found
......@@ -589,7 +589,7 @@ def parse_generic(lineno, is_format, name, toks):
continue
# 'Foo=number' sets an argument field to a constant value
if re_fullmatch(re_ident + '=[0-9]+', t):
if re_fullmatch(re_ident + '=[+-]?[0-9]+', t):
(fname, value) = t.split('=')
value = int(value)
flds = add_field(lineno, flds, fname, ConstField(value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment