diff options
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/encoding.c b/encoding.c index 27fda8d76..fcb40795c 100644 --- a/encoding.c +++ b/encoding.c @@ -1039,12 +1039,12 @@ int rb_isxdigit(int c) { return ctype_test(c, ONIGENC_CTYPE_XDIGIT); } int rb_tolower(int c) { - return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c; + return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c; } int rb_toupper(int c) { - return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c; + return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c; } |