mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0352d32f05
commit
1642877c69
1 changed files with 1 additions and 1 deletions
2
util.c
2
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,
|
||||
|
|
Loading…
Reference in a new issue