From 06f90a3b45fa4f241bbc43e91287aa9a127dc8c3 Mon Sep 17 00:00:00 2001 From: Lothar Scholz Date: Sat, 23 Dec 2017 01:10:43 +0100 Subject: Make source compilable with C++17 Changes applied: - Removing "register" keyword - Fixing const pointer to pointer assignments - Adding type casts to rb_malloc calls --- src/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index d4dc517cf..c2284d552 100644 --- a/src/string.c +++ b/src/string.c @@ -2835,8 +2835,8 @@ mrb_float_read(const char *string, char **endPtr) int sign, expSign = FALSE; double fraction, dblExp; const double *d; - register const char *p; - register int c; + const char *p; + int c; int exp = 0; /* Exponent read from "EX" field. */ int fracExp = 0; /* Exponent that derives from the fractional * part. Under normal circumstatnces, it is -- cgit v1.2.3