1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* pack.c (pack_unpack): upper half of hexdigits has never been used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-07-31 03:23:55 +00:00
parent 42a483d392
commit 1c30bc4cca
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Jul 31 12:23:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (pack_unpack): upper half of hexdigits has never been used.
Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/syck/syck.h (ASSERT): fix typo at r18176.

2
pack.c
View file

@ -1291,7 +1291,7 @@ infected_str_new(const char *ptr, long len, VALUE str)
static VALUE
pack_unpack(VALUE str, VALUE fmt)
{
static const char *hexdigits = "0123456789abcdef0123456789ABCDEFx";
static const char hexdigits[] = "0123456789abcdef";
char *s, *send;
char *p, *pend;
VALUE ary;