summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2009-12-11 23:10:47 (GMT)
committernijtmans <nijtmans@noemail.net>2009-12-11 23:10:47 (GMT)
commit10ce29ccec0b87bec11091d8b41a657dbe219e3e (patch)
tree5bf05c10694ebb7050e255e2f663f3936776582d /libtommath
parent3f0093ea21c05f7ab184f145927ff1a4bbbdf860 (diff)
downloadtcl-10ce29ccec0b87bec11091d8b41a657dbe219e3e.zip
tcl-10ce29ccec0b87bec11091d8b41a657dbe219e3e.tar.gz
tcl-10ce29ccec0b87bec11091d8b41a657dbe219e3e.tar.bz2
Fix gcc warning, using gcc-4.3.4 on cygwin
warning: array subscript has type 'char' win/makefile.vc Revert to version 1.203 [Bug #2912773] FossilOrigin-Name: 574533920e342b96bb7273401972575c42fc638c
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 37d902d..9387bc1 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 & 255) : *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.6 $ */
-/* $Date: 2009/12/11 22:52:09 $ */
+/* $Revision: 1.7 $ */
+/* $Date: 2009/12/11 23:10:47 $ */