diff options
| author | Lothar Scholz <[email protected]> | 2017-12-23 01:10:43 +0100 |
|---|---|---|
| committer | Lothar Scholz <[email protected]> | 2017-12-23 01:10:43 +0100 |
| commit | 06f90a3b45fa4f241bbc43e91287aa9a127dc8c3 (patch) | |
| tree | 46ab4c39e6784ac4bb6efbe4af28bfd6653d5f8c /src/string.c | |
| parent | 100f0e6759be8e439e586acf01032d2b8b96c6bd (diff) | |
| download | mruby-06f90a3b45fa4f241bbc43e91287aa9a127dc8c3.tar.gz mruby-06f90a3b45fa4f241bbc43e91287aa9a127dc8c3.zip | |
Make source compilable with C++17
Changes applied:
- Removing "register" keyword
- Fixing const pointer to pointer assignments
- Adding type casts to rb_malloc calls
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
