"tonumber" goes crazy with negative numbers in other bases (not 10),

because "strtol" returns long, not unsigned long.
This commit is contained in:
Roberto Ierusalimschy
1998-12-18 11:26:43 -02:00
parent b8fcb7b151
commit 0c9080c7a9
2 changed files with 8 additions and 2 deletions

6
bugs
View File

@@ -52,3 +52,9 @@ of view) when functions have upvalues.
** lstrlib.c
Tue Nov 10 17:29:36 EDT 1998
>> gsub/strfind do not check whether captures are properly finished.
** lbuiltin.c
Fri Dec 18 11:22:55 EDT 1998
>> "tonumber" goes crazy with negative numbers in other bases (not 10),
because "strtol" returns long, not unsigned long.