mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Fix parsing of integers
This bug was seen on 32-bit systems, where the range of recognized values was less than the range of hexadecimal values.
This commit is contained in:
parent
1044762dfa
commit
6f45a8f4ef
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ F RET_CONST(new Val(false, TYPE_BOOL))
|
|||
}
|
||||
|
||||
{D} {
|
||||
RET_CONST(new Val(static_cast<bro_uint_t>(strtoul(yytext, (char**) NULL, 10)),
|
||||
RET_CONST(new Val(static_cast<bro_uint_t>(strtoull(yytext, (char**) NULL, 10)),
|
||||
TYPE_COUNT))
|
||||
}
|
||||
{FLOAT} RET_CONST(new Val(atof(yytext), TYPE_DOUBLE))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue