diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 06:35:55 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-15 06:35:55 +0000 |
commit | 2edbb9d0f802bab53153979c59125dd0afaafccf (patch) | |
tree | 76c471687bb6af4c8c0528187471346008838622 /utf8.c | |
parent | 772396882f02ec3738242a4e83a34e4fc32597bb (diff) |
* lib/set.rb (Set#==): [ruby-dev:25206]
* ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]
* utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561]
* utf8.c (utf8_mbc_to_normalize): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -226,9 +226,9 @@ utf8_mbc_to_normalize(OnigAmbigType flag, UChar** pp, UChar* end, UChar* lower) if (*p == 195) { /* 195 == '\303' */ int c = *(p + 1); if (c >= 128) { - if (c <= '\236' && /* upper */ + if (c <= (unsigned char)'\236' && /* upper */ (flag & ONIGENC_AMBIGUOUS_MATCH_NONASCII_CASE) != 0) { - if (c != '\227') { + if (c != (unsigned char)'\227') { *lower++ = *p; *lower = (UChar )(c + 32); (*pp) += 2; @@ -286,11 +286,11 @@ utf8_is_mbc_ambiguous(OnigAmbigType flag, UChar** pp, UChar* end) int c = *(p + 1); if (c >= 128) { if ((flag & ONIGENC_AMBIGUOUS_MATCH_NONASCII_CASE) != 0) { - if (c <= '\236') { /* upper */ + if (c <= (unsigned char)'\236') { /* upper */ if (c == '\227') return FALSE; return TRUE; } - else if (c >= '\240' && c <= '\276') { /* lower */ + else if (c >= (unsigned char)'\240' && c <= (unsigned char)'\276') { /* lower */ if (c == '\267') return FALSE; return TRUE; } |