From 92861a11633b079c9dd50599baa6841a739c741d Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 6 Nov 2015 18:35:29 +0000 Subject: [PATCH] * include/ruby/ruby.h (RSTRUCT_PTR): need a close parenthese. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ include/ruby/ruby.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 61d384a436..161ffaf356 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Nov 7 03:32:27 2015 Koichi Sasada + + * include/ruby/ruby.h (RSTRUCT_PTR): need a close parenthese. + Sat Nov 7 01:32:06 2015 Naohisa Goto * dir.c (dir_fileno, dirfd): support of Dir#fileno on Solaris 10. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index f778298d62..e7f2f0d990 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1228,7 +1228,7 @@ struct RStruct { #define RSTRUCT_LEN(st) rb_struct_len(st) #define RSTRUCT_LENINT(st) rb_long2int(RSTRUCT_LEN(st)) #define RSTRUCT_CONST_PTR(st) rb_struct_const_ptr(st) -#define RSTRUCT_PTR(st) ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st)) +#define RSTRUCT_PTR(st) ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st))) #define RSTRUCT_SET(st, idx, v) RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v)) #define RSTRUCT_GET(st, idx) (RSTRUCT_CONST_PTR(st)[idx])