diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-19 15:45:46 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-19 15:45:46 +0000 |
commit | 293fdb45e57673f78af3c381d9f4d35e305e8440 (patch) | |
tree | 5b28440687c1701389b14598454e99aee9a925ba /range.c | |
parent | 8f0b6b7ebb77b2aa133b7a1bff7e222845fb717c (diff) | |
download | ruby-293fdb45e57673f78af3c381d9f4d35e305e8440.tar.gz ruby-293fdb45e57673f78af3c381d9f4d35e305e8440.tar.xz ruby-293fdb45e57673f78af3c381d9f4d35e305e8440.zip |
* ext/pty/pty.c (pty_finalize_syswait): join (using Thread#value)
before detach pid. [ruby-talk:71519]
* eval.c (PUSH_FRAME): save outer ruby_block. [ruby-list:37677],
[ruby-dev:20202]
* eval.c (BEGIN_CALLARGS): restore outer block by using
ruby_block->outer.
* eval.c (block_pass): do not alter block->prev, but block->outer.
* array.c (get_inspect_tbl): warning on wrong condition.
* eval.c (localjump_xvalue): renamed exitstatus to exit_value
since it's not exit "status" after all.
* eval.c (localjump_error): add reason to LocalJumpError.
* compar.c (rb_cmpint): raise error via rb_cmperr(), if cmp value
is nil. now take new 2 arguments.
* time.c (time_cmp): 2003-05-16 fix was incomplete.
(ruby-bugs-ja:PR#458)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -126,7 +126,7 @@ r_lt(a, b) VALUE r = rb_funcall(a, id_cmp, 1, b); if (NIL_P(r)) return Qfalse; - if (rb_cmpint(r) < 0) return Qtrue; + if (rb_cmpint(r, a, b) < 0) return Qtrue; return Qfalse; } @@ -137,7 +137,7 @@ r_le(a, b) VALUE r = rb_funcall(a, id_cmp, 1, b); if (NIL_P(r)) return Qfalse; - if (rb_cmpint(r) <= 0) return Qtrue; + if (rb_cmpint(r, a, b) <= 0) return Qtrue; return Qfalse; } @@ -149,7 +149,7 @@ r_gt(a,b) VALUE r = rb_funcall(a, id_cmp, 1, b); if (NIL_P(r)) return Qfalse; - if (rb_cmpint(r) > 0) return Qtrue; + if (rb_cmpint(r, a, b) > 0) return Qtrue; return Qfalse; } |