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

* gc.c (get_envparam_double): fix a warning message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-02-17 03:33:03 +00:00
parent 3ee0444955
commit 1aebaf7355
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Feb 17 12:31:31 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (get_envparam_double): fix a warning message.
Mon Feb 17 12:09:52 2014 Koichi Sasada <ko1@atdot.net>
* gc.c: introduce new environment variable

2
gc.c
View file

@ -5735,7 +5735,7 @@ get_envparam_double(const char *name, double *default_value, double lower_bound)
return 0;
}
if (val > lower_bound) {
if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%f (%f)\n", name, val, *default_value);
if (RTEST(ruby_verbose)) fprintf(stderr, "%s=%f (default value: %f)\n", name, val, *default_value);
*default_value = val;
return 1;
}