summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-13 07:07:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-13 07:07:39 +0000
commitb4974e71dcb32d430d7d686c5de247218991ec6c (patch)
tree8a2416811576cb5d2d48626f1512394f272e1882 /pack.c
parentf5219fee6307461c7ead4358290958679d9d0d38 (diff)
util.c: hexdigit
* util.c (hexdigit): extract identical constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 54f53036c8..73974b76f0 100644
--- a/pack.c
+++ b/pack.c
@@ -1204,7 +1204,7 @@ infected_str_new(const char *ptr, long len, VALUE str)
static VALUE
pack_unpack(VALUE str, VALUE fmt)
{
- static const char hexdigits[] = "0123456789abcdef";
+#define hexdigits ruby_hexdigits
char *s, *send;
char *p, *pend;
VALUE ary;