From aabb1f963e62d68d08d2b699e1d39748e1451188 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 29 Mar 2011 23:22:36 +0900 Subject: [PATCH] Removed condition always evaluated to true. --- src/json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.cc b/src/json.cc index b006992c..fccd0ec2 100644 --- a/src/json.cc +++ b/src/json.cc @@ -205,7 +205,7 @@ decodeString s += c2; s += c3; s += c4; - } else if(codepoint <= 0xffffu) { + } else { unsigned char c3 = 0x80u | (codepoint & 0x003Fu); unsigned char c2 = 0x80u | ((codepoint >> 6) & 0x003Fu); unsigned char c1 = 0xE0u | (codepoint >> 12);