[前][次][番号順一覧][スレッド一覧]

ruby-changes:15652

From: nobu <ko1@a...>
Date: Sat, 1 May 2010 02:22:43 +0900 (JST)
Subject: [ruby-changes:15652] Ruby:r27569 (trunk): * io.c (seek_before_access): fixed argument type.

nobu	2010-05-01 02:22:32 +0900 (Sat, 01 May 2010)

  New Revision: 27569

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27569

  Log:
    * io.c (seek_before_access): fixed argument type.

  Modified files:
    trunk/io.c

Index: io.c
===================================================================
--- io.c	(revision 27568)
+++ io.c	(revision 27569)
@@ -7911,8 +7911,9 @@
 };
 
 static VALUE
-seek_before_access(struct seek_arg *arg)
+seek_before_access(VALUE argp)
 {
+    struct seek_arg *arg = (struct seek_arg *)argp;
     rb_io_binmode(arg->io);
     return rb_io_seek(arg->io, arg->offset, arg->mode);
 }
@@ -7964,7 +7965,7 @@
 	sarg.io = arg.io;
 	sarg.offset = offset;
 	sarg.mode = SEEK_SET;
-	rb_protect((VALUE (*)(VALUE))seek_before_access, (VALUE)&sarg, &state);
+	rb_protect(seek_before_access, (VALUE)&sarg, &state);
 	if (state) {
 	    rb_io_close(arg.io);
 	    rb_jump_tag(state);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]