diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-07-17 16:50:05 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2017-07-17 16:50:05 +0900 |
commit | 5acc1eb52388e8865d16c0752a0bc6c4c01da8e7 (patch) | |
tree | 3e149911f17bcabb7a4bf6b468b26138783b0ff2 | |
parent | b40205e45987ba40aada380fa2b663bc4f039e95 (diff) | |
download | ise-engine-anthy-5acc1eb52388e8865d16c0752a0bc6c4c01da8e7.tar.gz ise-engine-anthy-5acc1eb52388e8865d16c0752a0bc6c4c01da8e7.tar.bz2 ise-engine-anthy-5acc1eb52388e8865d16c0752a0bc6c4c01da8e7.zip |
Fix issue detected by static analysis toolsubmit/tizen/20170720.014256accepted/tizen/unified/20170720.062156
Expression 'epos >= 0' is always true.
Unsigned type value is always >= 0. scim_anthy_style_file.cpp:103
Change-Id: Ia32436a39f93d667d029a43172d0b19421c5c8af
-rwxr-xr-x | src/scim_anthy_style_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |