summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-17 08:24:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-17 08:24:10 +0000
commitbe116626dd72b258c728f51b72a4527cbf8d9f55 (patch)
tree6adb55f550a907db2a6354aebc444e8aad9e946f
parent0476b8722290a9a5ff29c4b96447a4c4778a9c62 (diff)
gc.c: suppress a warning
* gc.c (get_envparam_size): suppress a warning by char-subscripts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 831582ca33..a3833bb031 100644
--- a/gc.c
+++ b/gc.c
@@ -5740,7 +5740,7 @@ get_envparam_size(const char *name, size_t *default_value, size_t lower_bound)
++end;
break;
}
- while (*end && isspace(*end)) end++;
+ while (*end && isspace((unsigned char)*end)) end++;
if (*end) {
if (RTEST(ruby_verbose)) fprintf(stderr, "invalid string for %s: %s\n", name, ptr);
return 0;