Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Change libtommath to make Bignum#to_s only use lowercase letters.

Received: by 10.35.59.5 with SMTP id m5mr10292302pyk.0.1197840260462;
        Sun, 16 Dec 2007 13:24:20 -0800 (PST)
Return-Path: <chris.shoema...@cox.net>
Received: from eastrmmtao102.cox.net (eastrmmtao102.cox.net [68.230.240.8])
        by mx.google.com with ESMTP id a28si57822320pye.2007.12.16.13.24.20;
        Sun, 16 Dec 2007 13:24:20 -0800 (PST)
Received-SPF: pass (google.com: domain of chris.shoema...@cox.net designates 68.230.240.8 as permitted sender) client-ip=68.230.240.8;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of chris.shoema...@cox.net designates 68.230.240.8 as permitted sender) smtp.mail=chris.shoema...@cox.net
Received: from eastrmimpo01.cox.net ([68.1.16.119])
          by eastrmmtao102.cox.net
          (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP
          id <20071216212419.NIHG3253.eastrmmtao102.cox....@eastrmimpo01.cox.net>;
          Sun, 16 Dec 2007 16:24:19 -0500
Received: from localhost ([68.0.253.29])
	by eastrmimpo01.cox.net with bizsmtp
	id RZPc1Y00Z0epFYL0000000; Sun, 16 Dec 2007 16:23:37 -0500
From: Chris Shoemaker <chris.shoema...@cox.net>
To: rubinius-dev <rubinius-dev@googlegroups.com>
Cc: Chris Shoemaker <chris.shoema...@cox.net>
Subject: [PATCH 4/5] Change libtommath to make Bignum#to_s only use lowercase letters.
Date: Sun, 16 Dec 2007 16:24:14 -0500
Message-Id: <1197840255-21117-5-git-send-email-chris.shoemaker@cox.net>
X-Mailer: git-send-email 1.5.3.7.1157.gbf82a
In-Reply-To: <1197840255-21117-4-git-send-email-chris.shoemaker@cox.net>
References: <1197840149-21078-1-git-send-email-chris.shoemaker@cox.net>
 <1197840255-21117-1-git-send-email-chris.shoemaker@cox.net>
 <1197840255-21117-2-git-send-email-chris.shoemaker@cox.net>
 <1197840255-21117-3-git-send-email-chris.shoemaker@cox.net>
 <1197840255-21117-4-git-send-email-chris.shoemaker@cox.net>
Message-Id: <9c894f274ae5509f4ce2a58d4ded7c74178570ca.1197839048.git.chris.shoemaker@cox.net>
In-Reply-To: <9bbfbfd78ec6d3a43dd48c2006135f9af97c2b87.1197839048.git.chris.shoemaker@cox.net>
References: <9bbfbfd78ec6d3a43dd48c2006135f9af97c2b87.1197839048.git.chris.shoema...@cox.net>

---
 .../external_libs/libtommath/bn_mp_radix_smap.c    |    2 +-
 .../external_libs/libtommath/bn_mp_read_radix.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/shotgun/external_libs/libtommath/bn_mp_radix_smap.c b/shotgun/external_libs/libtommath/bn_mp_radix_smap.c
index 7d72feb..438700f 100644
--- a/shotgun/external_libs/libtommath/bn_mp_radix_smap.c
+++ b/shotgun/external_libs/libtommath/bn_mp_radix_smap.c
@@ -16,7 +16,7 @@
  */
 
 /* chars used in radix conversions */
-const char *mp_s_rmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/";
+const char *mp_s_rmap = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/";
 #endif
 
 /* $Source: /cvs/libtom/libtommath/bn_mp_radix_smap.c,v $ */
diff --git a/shotgun/external_libs/libtommath/bn_mp_read_radix.c b/shotgun/external_libs/libtommath/bn_mp_read_radix.c
index 91c46c2..9320796 100644
--- a/shotgun/external_libs/libtommath/bn_mp_read_radix.c
+++ b/shotgun/external_libs/libtommath/bn_mp_read_radix.c
@@ -48,7 +48,7 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
      * this allows numbers like 1AB and 1ab to represent the same  value
      * [e.g. in hex]
      */
-    ch = (char) ((radix < 36) ? toupper (*str) : *str);
+    ch = (char) ((radix < 36) ? tolower (*str) : *str);
     for (y = 0; y < 64; y++) {
       if (ch == mp_s_rmap[y]) {
          break;
-- 
1.5.3.7.1157.gbf82a