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

dir.c: fix a typo

* dir.c (has_magic): fix a typo, check code not c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-07 05:08:37 +00:00
parent a654ee3128
commit 7645c974de

2
dir.c
View file

@ -1226,7 +1226,7 @@ has_magic(const char *p, const char *pend, int flags, rb_encoding *enc)
#ifdef _WIN32
else if (!rb_isascii(c)) {
unsigned int code = rb_enc_mbc_to_codepoint(p, pend, enc);
if (ONIGENC_IS_CODE_ALPHA(enc, c)) {
if (ONIGENC_IS_CODE_ALPHA(enc, code)) {
/* Full width alphabets */
hasalpha = 1;
}