summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-03-25 21:06:54 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-03-25 22:05:31 +0900
commita5a6b51126875e578ef1834c8af06141934df7dd (patch)
treec4ea44615f5b3ee1e9fdb3b9514bfe7e8200d712 /src
parent1e14afa4e4c73f268ee406a6de081cfdad635fa7 (diff)
downloadmruby-a5a6b51126875e578ef1834c8af06141934df7dd.tar.gz
mruby-a5a6b51126875e578ef1834c8af06141934df7dd.zip
Use uppercase version of `ctype` macros e.g. `ISSPACE`; fix #4338
Diffstat (limited to 'src')
-rw-r--r--src/string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index 19962fb30..8efea84ab 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2844,7 +2844,7 @@ mrb_float_read(const char *string, char **endPtr)
*/
p = string;
- while (isspace(*p)) {
+ while (ISSPACE(*p)) {
p += 1;
}
if (*p == '-') {
@@ -2867,7 +2867,7 @@ mrb_float_read(const char *string, char **endPtr)
for (mantSize = 0; ; mantSize += 1)
{
c = *p;
- if (!isdigit(c)) {
+ if (!ISDIGIT(c)) {
if ((c != '.') || (decPt >= 0)) {
break;
}
@@ -2952,7 +2952,7 @@ mrb_float_read(const char *string, char **endPtr)
}
expSign = FALSE;
}
- while (isdigit(*p)) {
+ while (ISDIGIT(*p)) {
exp = exp * 10 + (*p - '0');
if (exp > 19999) {
exp = 19999;