"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 committed 1998-12-18 11:26:43 -02:00
1 parent b8fcb7b151
commit 0c9080c7a9
2 files changed
+8 -2

No files matched your search

+6
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.