From fc1bdda026f296ca3955a2338a72971821eb034a Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 29 Sep 2005 01:28:56 +0000 Subject: [PATCH] * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE). [ruby-dev:27317] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/dl/cptr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 96a8ad0c6c..7bbc78eaef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 29 10:26:18 2005 Tanaka Akira + + * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE). + [ruby-dev:27317] + Thu Sep 29 10:15:14 2005 Tanaka Akira * lib/open-uri.rb (:proxy_http_basic_authentication): new option. diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index 70cb640580..fe83c7adf6 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -426,7 +426,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val) #else fp = fptr->f; #endif - return rb_dlptr_new(fp, sizeof(FILE), NULL); + return rb_dlptr_new(fp, 0, NULL); } else if( rb_obj_is_kind_of(val, rb_cString) == Qtrue ){ char *ptr = StringValuePtr(val);