[macruby-changes] [5115] MacRuby/trunk/ext/openssl/ossl_bn.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 4 21:26:40 PST 2011


Revision: 5115
          http://trac.macosforge.org/projects/ruby/changeset/5115
Author:   watson1978 at gmail.com
Date:     2011-01-04 21:26:37 -0800 (Tue, 04 Jan 2011)
Log Message:
-----------
Fixed a bug of OpenSSL::BN#prime?. fix comparison with rb_scan_args. Merged from CRuby 1.9 r29237.
see https://github.com/ruby/ruby/commit/6ebb345dd7c634461fa0cc272d3590a86ebe2aad

Revision Links:
--------------
    http://trac.macosforge.org/projects/ruby/changeset/29237

Modified Paths:
--------------
    MacRuby/trunk/ext/openssl/ossl_bn.c

Modified: MacRuby/trunk/ext/openssl/ossl_bn.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_bn.c	2011-01-05 05:18:23 UTC (rev 5114)
+++ MacRuby/trunk/ext/openssl/ossl_bn.c	2011-01-05 05:26:37 UTC (rev 5115)
@@ -671,7 +671,7 @@
     VALUE vchecks;
     int checks = BN_prime_checks;
 
-    if (rb_scan_args(argc, argv, "01", &vchecks) == 0) {
+    if (rb_scan_args(argc, argv, "01", &vchecks) == 1) {
 	checks = NUM2INT(vchecks);
     }
     GetBN(self, bn);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110104/d1ec1b7a/attachment.html>


More information about the macruby-changes mailing list