From 4520a3408afe2f30c4513ace4a00107c6a547ea3 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 22 Mar 2011 11:10:34 +0000 Subject: * ext/psych/parser.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/psych/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/psych/parser.c b/ext/psych/parser.c index 7bfdf4af90..f0751051a1 100644 --- a/ext/psych/parser.c +++ b/ext/psych/parser.c @@ -19,9 +19,9 @@ static ID id_end_mapping; #define PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc) \ do { \ - rb_enc_associate_index(_str, _yaml_enc); \ + rb_enc_associate_index((_str), (_yaml_enc)); \ if(_internal_enc) \ - _str = rb_str_export_to_enc(_str, _internal_enc); \ + (_str) = rb_str_export_to_enc((_str), (_internal_enc)); \ } while (0) static int io_reader(void * data, unsigned char *buf, size_t size, size_t *read) -- cgit v1.2.3