Hello,
I have backported changes related to this issue from
the newest version from github,
and created a patch that solves it for
mips/mipsel.
Could you please consider including
these changes in a current version of mruby (1.0.0-1).
Thanks,
Dejan
diff -uNr mruby-1.0.0.orig/src/numeric.c mruby-1.0.0/src/numeric.c
--- mruby-1.0.0.orig/src/numeric.c 2014-01-10 12:49:57.000000000 +0000
+++ mruby-1.0.0/src/numeric.c 2014-04-08 15:38:07.000000000 +0000
@@ -141,7 +141,12 @@
*(c++) = '-';
}
- exp = (int)log10(n);
+ if (n != 0.0) {
+ exp = (int)log10(n);
+ }
+ else {
+ exp = 0;
+ }
if ((exp < 0 ? -exp : exp) > max_digit) {
/* exponent representation */