summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-01 14:44:31 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-01 14:44:31 (GMT)
commit2fef15145c4a4a9d3d62062f6aae0e342fa50807 (patch)
treef9b23460e4acaa2f8d69e4c1436e345f24a55b3b /util.c
parentba3dc473c4b513d953eb2f53847c937a1dd064dd (diff)
util.c: constify
* util.c (scan_digits): constify readonly table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index fb72931..93d0547 100644
--- a/util.c
+++ b/util.c
@@ -58,7 +58,7 @@ ruby_scan_hex(const char *start, size_t len, size_t *retlen)
static unsigned long
scan_digits(const char *str, int base, size_t *retlen, int *overflow)
{
- static signed char table[] = {
+ static const 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,