From 19c744e14d63996dd5e64db3f8a4440099079ac3 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 14 Dec 2015 10:39:39 +0900 Subject: mrb_str_len_to_inum(): fixed a bug with separating _ in the digits; ref #3043 --- src/string.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/string.c b/src/string.c index 79606f1af..552293a46 100644 --- a/src/string.c +++ b/src/string.c @@ -2125,15 +2125,21 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b break; } /* end of switch (base) { */ if (*p == '0') { /* squeeze preceding 0s */ - while (p