From a190741da4681820d38d977bf2f14f969f9ffca3 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 8 Mar 2011 12:45:20 +0000 Subject: [PATCH] * ext/openssl/ossl_rand.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/openssl/ossl_rand.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d203d7d906..1985ce6361 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 8 21:44:49 2011 Tanaka Akira + + * ext/openssl/ossl_rand.c: parenthesize macro arguments. + Tue Mar 8 16:45:31 2011 NAKAMURA Usaku * hash.c (ruby_setenv): MSDN says that Windows XP or earlier limits diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c index 748e4c937e..92f5aaab53 100644 --- a/ext/openssl/ossl_rand.c +++ b/ext/openssl/ossl_rand.c @@ -172,8 +172,8 @@ ossl_rand_status(VALUE self) } #define DEFMETH(class, name, func, argc) \ - rb_define_method(class, name, func, argc); \ - rb_define_singleton_method(class, name, func, argc); + rb_define_method((class), (name), (func), (argc)); \ + rb_define_singleton_method((class), (name), (func), (argc)); /* * INIT