diff options
Diffstat (limited to 'ext/psych/parser.c')
-rw-r--r-- | ext/psych/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |