diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-03 04:10:17 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-03 04:10:17 +0000 |
| commit | b66270bc3606654375bedfb307ccba1b9a592db5 (patch) | |
| tree | ce7c0170625361880e659429e237c2e4af39b17e | |
| parent | be63a0dc46888b2e8fc9a3a05c5217ca7dd0e413 (diff) | |
| download | ruby-b66270bc3606654375bedfb307ccba1b9a592db5.tar.gz ruby-b66270bc3606654375bedfb307ccba1b9a592db5.tar.xz ruby-b66270bc3606654375bedfb307ccba1b9a592db5.zip | |
* range.c (rb_range_beg_len): rb_raise takes C values as arguments.
[BUG] ranges turned into other value in a message of RangeError.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | range.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Nov 3 13:00:26 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * range.c (rb_range_beg_len): rb_raise takes C values as arguments. + [BUG] ranges turned into other value in a message of RangeError. + Mon Nov 3 06:41:19 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c (ole_event_free): invoke IConnectionPoint::Unadvise @@ -636,7 +636,7 @@ rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err) out_of_range: if (err) { rb_raise(rb_eRangeError, "%ld..%s%ld out of range", - b, excl ? "." : "", e); + NUM2LONG(b), excl ? "." : "", NUM2LONG(e)); } return Qnil; } |
