summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-01-06 21:35:21 (GMT)
committernijtmans <nijtmans@noemail.net>2010-01-06 21:35:21 (GMT)
commit9dce1e9a984a3e0beb09e0c3a1292a13c1f63bc6 (patch)
treee6ad158e27cb4aae64737fd8c11326891a51ac7f /libtommath
parent6cbc7dfe30d158f9d3c06973dee976b2659e3c91 (diff)
downloadtcl-9dce1e9a984a3e0beb09e0c3a1292a13c1f63bc6.zip
tcl-9dce1e9a984a3e0beb09e0c3a1292a13c1f63bc6.tar.gz
tcl-9dce1e9a984a3e0beb09e0c3a1292a13c1f63bc6.tar.bz2
Various trivial fixes, discovered during CYGWIN porting attempt. All backported from trunk.
FossilOrigin-Name: 100e5d2f1262afde210c7844d866359a8409924c
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/bn_mp_read_radix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtommath/bn_mp_read_radix.c b/libtommath/bn_mp_read_radix.c
index 75859f8..20a12e6 100644
--- a/libtommath/bn_mp_read_radix.c
+++ b/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) ? toupper ((unsigned char) *str) : *str);
for (y = 0; y < 64; y++) {
if (ch == mp_s_rmap[y]) {
break;
@@ -89,6 +89,6 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/bn_mp_read_radix.c,v $ */
/* Tom's revision is 1.4. */
-/* $Revision: 1.5 $ */
-/* $Date: 2006/12/01 00:31:32 $ */
+/* $Revision: 1.5.4.1 $ */
+/* $Date: 2010/01/06 21:35:25 $ */