[前][次][番号順一覧][スレッド一覧]

ruby-changes:19013

From: akr <ko1@a...>
Date: Tue, 8 Mar 2011 00:03:24 +0900 (JST)
Subject: [ruby-changes:19013] Ruby:r31051 (trunk): * ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.

akr	2011-03-08 00:03:18 +0900 (Tue, 08 Mar 2011)

  New Revision: 31051

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31051

  Log:
    * ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_pkey_rsa.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31050)
+++ ChangeLog	(revision 31051)
@@ -1,3 +1,7 @@
+Tue Mar  8 00:02:47 2011  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.
+
 Mon Mar  7 22:59:39 2011  Shota Fukumori  <sorah@t...>
 
 	* lib/pstore.rb: Delete variable @transaction and fix #4474. Patch by
Index: ext/openssl/ossl_pkey_rsa.c
===================================================================
--- ext/openssl/ossl_pkey_rsa.c	(revision 31050)
+++ ext/openssl/ossl_pkey_rsa.c	(revision 31051)
@@ -13,8 +13,8 @@
 #include "ossl.h"
 
 #define GetPKeyRSA(obj, pkey) do { \
-    GetPKey(obj, pkey); \
-    if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
+    GetPKey((obj), (pkey)); \
+    if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
 	ossl_raise(rb_eRuntimeError, "THIS IS NOT A RSA!") ; \
     } \
 } while (0)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]