summaryrefslogtreecommitdiff
path: root/ext/dl/cptr.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-29 01:28:56 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-29 01:28:56 +0000
commitfc1bdda026f296ca3955a2338a72971821eb034a (patch)
treebe1270d90e50164a90adb8432ff8aeb623612b44 /ext/dl/cptr.c
parent44594b243ddde479a6d3aae4c6afc3a852109d83 (diff)
* 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
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r--ext/dl/cptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index 70cb6405803..fe83c7adf6e 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);