From f6f158c65a9e7c6ad1336d79ced3096cd25a90c4 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 24 Nov 2016 20:51:45 +0000 Subject: use `rb_struct_ptr` for `RSTRUCT_PTR` macro * include/ruby/ruby.h (RSTRUCT_PTR): at r55788, `rb_struct_const_ptr` had been hidden and `rb_struct_ptr` had been implemented for backward compatiblity. but the definition of `RSTRUCT_PTR` was not modified to use it, probably by mistake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 72e91c2f7b..26fbd12e88 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1181,7 +1181,7 @@ void *rb_check_typeddata(VALUE, const rb_data_type_t *); ((sval) = (type*)rb_check_typeddata((obj), (data_type))) #define RSTRUCT_LEN(st) rb_struct_size(st) -#define RSTRUCT_PTR(st) rb_struct_const_ptr(st) +#define RSTRUCT_PTR(st) rb_struct_ptr(st) #define RSTRUCT_SET(st, idx, v) rb_struct_aset(st, INT2NUM(idx), (v)) #define RSTRUCT_GET(st, idx) rb_struct_aref(st, INT2NUM(idx)) -- cgit v1.2.3