summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-27 01:33:01 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-27 01:33:01 +0000
commit55378a9eb60b2ae4bfb9051f28f5264d8043008d (patch)
tree0f8bc12a24eaa324bcc7654dcc92bbc07c189956
parent01fb7e5b71db72522ba26fde0c2f7fd2d194077f (diff)
* enc/windows_1253.c: Remove dead code found by Coverity Scan.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--enc/windows_1253.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 551d9dd..cb27c1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 27 10:32:59 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/windows_1253.c: Remove dead code found by Coverity Scan.
+
Tue Jul 26 22:43:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (run_finalizer): make saved running finalizer state
diff --git a/enc/windows_1253.c b/enc/windows_1253.c
index 9be5943..2157b55 100644
--- a/enc/windows_1253.c
+++ b/enc/windows_1253.c
@@ -253,9 +253,7 @@ case_map (OnigCaseFoldType* flagP, const OnigUChar** pp,
else if ((EncCP1253_CtypeTable[code] & BIT_CTYPE_LOWER)
&& (flags&ONIGENC_CASE_UPCASE)) {
flags |= ONIGENC_CASE_MODIFIED;
- if (code==0xB5)
- code = 0xCC;
- else if (code==0xDC)
+ if (code==0xDC)
code = 0xA2;
else if (code>=0xDD && code<=0xDF)
code -= 0x25;