summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-02 06:29:08 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-02 06:29:08 +0000
commit13797a220b687272ff166955e1c9b33620437dbc (patch)
tree352286b2f793076169e8f0dbfe532384b13618b7
parent9c8a38e7aae3d71903c3b4364d8190bbdfee1532 (diff)
downloadruby-13797a220b687272ff166955e1c9b33620437dbc.tar.gz
ruby-13797a220b687272ff166955e1c9b33620437dbc.tar.xz
ruby-13797a220b687272ff166955e1c9b33620437dbc.zip
use signed char explicitly for table in scan_digits.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 21a2719aa..5a4330b89 100644
--- a/util.c
+++ b/util.c
@@ -66,7 +66,7 @@ ruby_scan_hex(const char *start, int len, int *retlen)
static unsigned long
scan_digits(const char *str, int base, size_t *retlen, int *overflow)
{
- static char table[] = {
+ static signed char table[] = {
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/*0*/ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
/*1*/ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,