nobu
90c1ebbfd5
compar.c: fail if recursion
...
* compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003 ]
* thread.c (rb_exec_recursive_paired_outer): new function which is
combinnation of paired and outer variants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-09 04:53:18 +00:00
nobu
44c5c2a312
compar.c: inversed comarison without infinite recursion
...
* compar.c (rb_invcmp): compare by inversed comarison, with preventing
from infinite recursion. [ruby-core:52305] [Bug #7870 ]
* string.c (rb_str_cmp_m), time.c (time_cmp): get rid of infinite
recursion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 11:55:50 +00:00
nobu
6ef3d123dd
* test/ruby/test_comparable.rb (TestComparable#cmp): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08 03:59:42 +00:00
mame
c8d27afcd6
* test/ruby/test_comparable.rb: new tests for Comparable, to achieve
...
100% test coverage of compar.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24 13:38:01 +00:00