Make source compilable with C++17

Changes applied:

- Removing "register" keyword
- Fixing const pointer to pointer assignments
- Adding type casts to rb_malloc calls
This commit is contained in:
Lothar Scholz
2017-12-23 01:10:43 +01:00
parent 100f0e6759
commit 06f90a3b45
6 changed files with 25 additions and 26 deletions
+2 -2
View File
@@ -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