1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-04-17 08:24:10 +00:00
parent 0476b87222
commit be116626dd

2
gc.c
View file

@ -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;