aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-24 20:51:45 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-24 20:51:45 +0000
commitfdaf2aa6cb94f02238c2ecfc8410b8bf71f71218 (patch)
treee81cc423a37f1f1626381c07ba754e94a3e05d93 /include
parentdd3b41206e097b7afef73cab683453f52b22d297 (diff)
downloadruby-fdaf2aa6cb94f02238c2ecfc8410b8bf71f71218.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
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))