diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-13 02:50:34 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-13 02:50:34 +0000 |
commit | 50cb050bd7fb61b0316eac608f69a29479b8fc60 (patch) | |
tree | a2ceacda9f8d1caab93a7377f1062c27a20950e7 | |
parent | 7aac416d2cb7b7393073fce6ca23c8006bd04ad4 (diff) |
IO#seek segv
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3317,7 +3317,7 @@ Init_IO() rb_define_method(rb_cIO, "<<", rb_io_addstr, 1); rb_define_method(rb_cIO, "flush", rb_io_flush, 0); rb_define_method(rb_cIO, "tell", rb_io_tell, 0); - rb_define_method(rb_cIO, "seek", rb_io_seek, 2); + rb_define_method(rb_cIO, "seek", rb_io_seek, -1); rb_define_const(rb_cIO, "SEEK_SET", INT2FIX(SEEK_SET)); rb_define_const(rb_cIO, "SEEK_CUR", INT2FIX(SEEK_CUR)); rb_define_const(rb_cIO, "SEEK_END", INT2FIX(SEEK_END)); |