summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/openssl/ossl_rand.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d203d7d..1985ce6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 8 21:44:49 2011 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_rand.c: parenthesize macro arguments.
+
Tue Mar 8 16:45:31 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 748e4c9..92f5aaa 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