summaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 09:40:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-03 09:40:00 +0000
commit07a9f813a3d4c3ab8ab84df88234c4f0641a16d4 (patch)
treec1e6b72c653c01227397167259e170d264e478d4 /encoding.c
parent4883381eeff4fef9b30506105729988d8a4f5a31 (diff)
downloadruby-07a9f813a3d4c3ab8ab84df88234c4f0641a16d4.tar.gz
ruby-07a9f813a3d4c3ab8ab84df88234c4f0641a16d4.tar.xz
ruby-07a9f813a3d4c3ab8ab84df88234c4f0641a16d4.zip
* encoding.c: (rb_tolower, rb_toupper): body was exchanged.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c4
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;
}