diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-31 12:10:08 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-31 12:10:08 +0000 |
| commit | 7d7b486ae7a89cb0088e7fddaab5160ada78ddab (patch) | |
| tree | fa17612ac37b3c3dedf4d03a45eefba4226c5b6b /ext/dl | |
| parent | 1fe7650935eb11b44037ef69bf435cda9dffa5e3 (diff) | |
| download | ruby-7d7b486ae7a89cb0088e7fddaab5160ada78ddab.tar.gz ruby-7d7b486ae7a89cb0088e7fddaab5160ada78ddab.tar.xz ruby-7d7b486ae7a89cb0088e7fddaab5160ada78ddab.zip | |
* eval.c (search_required): use RSTRING_PTR and RSTRING_STR.
* object.c (nil_plus): ditto.
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto.
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 fe83c7adf..b947ef27e 100644 --- a/ext/dl/cptr.c +++ b/ext/dl/cptr.c @@ -430,7 +430,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val) } else if( rb_obj_is_kind_of(val, rb_cString) == Qtrue ){ char *ptr = StringValuePtr(val); - return rb_dlptr_new(ptr, RSTRING(val)->len, NULL); + return rb_dlptr_new(ptr, RSTRING_LEN(val), NULL); } else if( rb_respond_to(val, id_to_ptr) ){ VALUE vptr = rb_funcall(val, id_to_ptr, 0); |
