diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-20 20:40:20 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-20 20:40:20 +0000 |
commit | 909cfc647f8b4c0540aaa72a925e22c5e452ef05 (patch) | |
tree | 79088735efd0839894fa930ce65f275cd98d6b55 /eval.c | |
parent | f4fe2a7d22f991969ec29e5d94f1a184a477492e (diff) | |
download | ruby-909cfc647f8b4c0540aaa72a925e22c5e452ef05.tar.gz ruby-909cfc647f8b4c0540aaa72a925e22c5e452ef05.tar.xz ruby-909cfc647f8b4c0540aaa72a925e22c5e452ef05.zip |
* string.c (rb_str_cmp_m): return nil if str2 does not respond to
both "to_str" and "<=>".
* compar.c (cmp_gt): return nil if "<=>" returns nil (means
incomparable).
* compar.c (cmp_ge): ditto.
* compar.c (cmp_lt): ditto.
* compar.c (cmp_between): use RTEST(), since cmp_lt and cmp_gt may
return nil.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions