From 1642877c69c07f87d7d3291b5a61ea6c8c169338 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 2 Jan 2008 06:29:08 +0000 Subject: use signed char explicitly for table in scan_digits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index 21a2719aa5..5a4330b899 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, -- cgit v1.2.3