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

* debug.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-12-07 12:16:10 +00:00
parent 9ce40aacef
commit 766d38e659
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Dec 7 21:14:03 2010 Tanaka Akira <akr@fsij.org>
* debug.c: parenthesize macro arguments.
Tue Dec 7 21:06:38 2010 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.

View file

@ -141,7 +141,7 @@ set_debug_option(const char *str, int len, void *arg)
{
#define SET_WHEN(name, var) do { \
if (len == sizeof(name) - 1 && \
strncmp(str, name, len) == 0) { \
strncmp(str, (name), len) == 0) { \
extern int var; \
var = 1; \
return; \