Skip to content

Commit 756258c

Browse files
committed
Fixes writing negative numbers in the unabbreviated listing.
1 parent b14cb86 commit 756258c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/parser.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ static unsigned long get_number(parse &s)
9494
else
9595
{
9696
bool sign = s.expect('-');
97-
unsigned num = get_dec(s);
97+
int num = get_dec(s);
9898

99-
if( num > 65535 )
99+
if( num > 65535 || num < 0 )
100100
return 65536;
101101

102102
if( s.expect('.') ) // If ends in a DOT, it's a fp number

0 commit comments

Comments
 (0)