https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782014-02-06T19:22:06ZRuby Issue Tracking SystemBackport21 - Backport #9493: parameters equals to 0 (== lowerbound) should not accept.https://bugs.ruby-lang.org/issues/9493?journal_id=449982014-02-06T19:22:06Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r44868.</p>
<hr>
<p>merge revision(s) 44861,44862: [Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: parameters equals to 0 (== lowerbound) should not accept. (Closed)" href="https://bugs.ruby-lang.org/issues/9493">#9493</a>]</p>
<pre><code>* gc.c (get_envparam_int): don't accept a value equals to lowerbound
(changed by last commit) because "" or "foo" (not a number) strings
are parsed as 0. They should be rejected.
* gc.c (get_envparam_double): ditto.
* gc.c (get_envparam_int): accept a value equals to lowerbound.
* gc.c (get_envparam_int): correct warning messsages.
* gc.c (get_envparam_double): ditto.
</code></pre>