numeric.c: fixed a silly bug related to pointer decrement.

parent be647acd
......@@ -1522,7 +1522,7 @@ mrb_int_to_cstr(char *buf, size_t len, mrb_int n, mrb_int base)
return buf;
}
*b-- = '\0';
*b = '\0';
if (n < 0) {
do {
if (b-- == buf) return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment