diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-07 05:08:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-07 05:08:37 +0000 |
commit | 7645c974de0d994be440be43bbfe9cb6206fde81 (patch) | |
tree | 20046fd328bcf57162cf53ee54922d4a44d0d858 /dir.c | |
parent | a654ee3128a189e3612332424084e54448b0a13a (diff) | |
download | ruby-7645c974de0d994be440be43bbfe9cb6206fde81.tar.gz |
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
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |