1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/strscan/strscan.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-31 11:42:23 +00:00
parent 7487298584
commit eb239b4334
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 31 20:42:05 2011 Tanaka Akira <akr@fsij.org>
* ext/strscan/strscan.c: parenthesize macro arguments.
Thu Mar 31 18:06:12 2011 Shugo Maeda <shugo@ruby-lang.org>
* vm_insnhelper.c (vm_get_ev_const): should ignore crefs with

View file

@ -51,8 +51,8 @@ struct strscanner
#define EOS_P(s) ((s)->curr >= RSTRING_LEN(p->str))
#define GET_SCANNER(obj,var) do {\
Data_Get_Struct(obj, struct strscanner, var);\
if (NIL_P(var->str)) rb_raise(rb_eArgError, "uninitialized StringScanner object");\
Data_Get_Struct((obj), struct strscanner, (var));\
if (NIL_P((var)->str)) rb_raise(rb_eArgError, "uninitialized StringScanner object");\
} while (0)
/* =======================================================================