Closed dragoncoder047 closed 1 year ago
The existing definition of fromradix40 returns \0 when it is passed 10 instead of the expected 9 (toradix40 correctly returns 10 when passed 9).
fromradix40
\0
9
toradix40
Here's the fix:
char fromradix40 (char n) { - if (n >= 1 && n <= 9) return '0'+n-1; + if (n >= 1 && n <= 10) return '0'+n-1; if (n >= 11 && n <= 36) return 'a'+n-11; if (n == 37) return '-'; if (n == 38) return '*'; if (n == 39) return '$'; return 0; }
You're right!
> (defvar abc9 2) abc
How has that gone unnoticed for so long? Thanks for spotting it - I'll release a fix.
Fixed in 4.4b - thanks!
The existing definition of
fromradix40
returns\0
when it is passed 10 instead of the expected9
(toradix40
correctly returns 10 when passed9
).Here's the fix: