fix l_to_a does not work for a base other than 10
This commit is contained in:
parent
55c85b55e7
commit
1aeff476b2
@ -1886,7 +1886,7 @@ l_to_a(long N, int base)
|
||||
|
||||
register int divrem;
|
||||
|
||||
if (base < 36 || 2 > base)
|
||||
if (base > 36 || 2 > base)
|
||||
base = 10;
|
||||
|
||||
if (N < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user