From 113de0083e58282e1a411e8364951c98c3dddaaf Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 4 Feb 2011 10:14:53 +0000 Subject: * enc/trans/utf8_mac.trans: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ enc/trans/utf8_mac.trans | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a0dc2d4fb9..8c25b92c94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 4 19:14:27 2011 Tanaka Akira + + * enc/trans/utf8_mac.trans: parenthesize macro arguments. + Fri Feb 4 12:11:51 2011 KOSAKI Motohiro * string.c (str_utf8_nth): fixed a conditon of optimized lead diff --git a/enc/trans/utf8_mac.trans b/enc/trans/utf8_mac.trans index 0d69dba46a..8ea0afd73f 100644 --- a/enc/trans/utf8_mac.trans +++ b/enc/trans/utf8_mac.trans @@ -52,7 +52,7 @@ struct from_utf8_mac_status { int end; int len; }; -#define buf_length(sp) (sp->len) +#define buf_length(sp) ((sp)->len) int buf_bytesize(struct from_utf8_mac_status *sp) -- cgit v1.2.3