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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-31 02:59:33 +09:00
parent be647acd3e
commit cf2e78de44
+1 -1
View File
@@ -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;