mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
decodetree: Allow +- to begin a number initializing a field
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
82bfac1c06
commit
263ac638a7
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue