From: Jihoon Kim Date: Mon, 17 Jul 2017 07:50:05 +0000 (+0900) Subject: Fix issue detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20170720.062156^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5acc1eb52388e8865d16c0752a0bc6c4c01da8e7;p=platform%2Fcore%2Fuifw%2Fise-engine-anthy.git Fix issue detected by static analysis tool Expression 'epos >= 0' is always true. Unsigned type value is always >= 0. scim_anthy_style_file.cpp:103 Change-Id: Ia32436a39f93d667d029a43172d0b19421c5c8af --- diff --git a/src/scim_anthy_style_file.cpp b/src/scim_anthy_style_file.cpp index 413383e..1e8d9a7 100755 --- a/src/scim_anthy_style_file.cpp +++ b/src/scim_anthy_style_file.cpp @@ -100,7 +100,7 @@ StyleLine::get_type (void) spos++); if (m_line.length() > 0) { for (epos = m_line.length () - 1; - epos >= 0 && isspace (m_line[epos]); + isspace (m_line[epos]); epos--); } else { epos = 0;