summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bignum.c4
-rw-r--r--version.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/bignum.c b/bignum.c
index a5983c4ba9..4b50737bb6 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4057,9 +4057,6 @@ rb_cstr_parse_inum(const char *str, ssize_t len, char **endp, int base)
sign = 0;
}
ASSERT_LEN();
- if (str[0] == '+' || str[0] == '-') {
- goto bad;
- }
}
if (base <= 0) {
if (str[0] == '0' && len > 1) {
@@ -4172,6 +4169,7 @@ rb_cstr_parse_inum(const char *str, ssize_t len, char **endp, int base)
digits_start = str;
if (!str2big_scan_digits(s, str, base, badcheck, &num_digits, &len))
goto bad;
+ if (endp) *endp = (char *)(str + len);
digits_end = digits_start + len;
if (POW2_P(base)) {
diff --git a/version.h b/version.h
index 1bc29c45e9..0a845df844 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.4.0"
#define RUBY_RELEASE_DATE "2017-03-13"
-#define RUBY_PATCHLEVEL 98
+#define RUBY_PATCHLEVEL 99
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3