1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2005-09-29 01:28:56 +00:00
parent 44594b243d
commit fc1bdda026
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Sep 29 10:26:18 2005 Tanaka Akira <akr@m17n.org>
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).
[ruby-dev:27317]
Thu Sep 29 10:15:14 2005 Tanaka Akira <akr@m17n.org> Thu Sep 29 10:15:14 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb (:proxy_http_basic_authentication): new option. * lib/open-uri.rb (:proxy_http_basic_authentication): new option.

View file

@ -426,7 +426,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
#else #else
fp = fptr->f; fp = fptr->f;
#endif #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 ){ else if( rb_obj_is_kind_of(val, rb_cString) == Qtrue ){
char *ptr = StringValuePtr(val); char *ptr = StringValuePtr(val);