diff options
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/cptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c index 70cb64058..fe83c7adf 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); |