fix l_to_a does not work for a base other than 10

This commit is contained in:
Markus Beth 2018-11-07 00:20:39 +01:00
parent 55c85b55e7
commit 1aeff476b2

View File

@ -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)