uniconproject / unicon

http://www.unicon.org
Other
54 stars 28 forks source link

runtime: Fix bugs in string to int conversion when the str has a suffix #417

Closed Don-Ward closed 1 month ago

Don-Ward commented 1 month ago

The previous code had two problems: (1) Overflows were sometimes not detected when the string had a suffix. (2) Strings with a suffix that were big integers would fail (strings with suffixes that were not a big integer worked).

This commit also fixes a related bug in numeric(), which uses string conversion.