diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-02 06:29:08 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-02 06:29:08 +0000 |
commit | 1642877c69c07f87d7d3291b5a61ea6c8c169338 (patch) | |
tree | 352286b2f793076169e8f0dbfe532384b13618b7 /util.c | |
parent | 0352d32f05b42bb31fe98e0fa3582ef4e4689e79 (diff) | |
download | ruby-1642877c69c07f87d7d3291b5a61ea6c8c169338.tar.gz |
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
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |