ruby-changes:19312
From: nobu <ko1@a...>
Date: Wed, 27 Apr 2011 00:51:09 +0900 (JST)
Subject: [ruby-changes:19312] Ruby:r31352 (trunk): * file.c (rb_file_truncate): fix function.
nobu 2011-04-27 00:51:04 +0900 (Wed, 27 Apr 2011) New Revision: 31352 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31352 Log: * file.c (rb_file_truncate): fix function. Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31351) +++ ChangeLog (revision 31352) @@ -1,5 +1,7 @@ -Wed Apr 27 00:50:06 2011 Nobuyoshi Nakada <nobu@r...> +Wed Apr 27 00:51:01 2011 Nobuyoshi Nakada <nobu@r...> + * file.c (rb_file_truncate): fix function. + * include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64 versions on mingw are useless because they use int32_t. fixes #4564 Index: file.c =================================================================== --- file.c (revision 31351) +++ file.c (revision 31352) @@ -3963,7 +3963,7 @@ rb_sys_fail_path(fptr->pathv); #else /* defined(HAVE_CHSIZE) */ if (chsize(fptr->fd, pos) < 0) - rb_sys_fail(fptr->pathv); + rb_sys_fail_path(fptr->pathv); #endif return INT2FIX(0); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/