diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-06-13 10:04:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-06-13 10:04:20 +0200 |
commit | 9760621b5c93edb829478c284e4b61537824e702 (patch) | |
tree | 77cfe692078ab443be055d538f2aa9aa1510f2ec /vcl/source/glyphs/graphite_features.cxx | |
parent | 7142090557362ebf5314573317a68132383c460c (diff) |
Work around -Werror=type-limits when plain char is unsigned
...assuming the original intent of the code was to check for ASCII range 0x20--
0x7F.
Change-Id: I8033890a76e059d997efb01431207a453f00a981
Diffstat (limited to 'vcl/source/glyphs/graphite_features.cxx')
-rw-r--r-- | vcl/source/glyphs/graphite_features.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/glyphs/graphite_features.cxx b/vcl/source/glyphs/graphite_features.cxx index ec335005c60c..609c88bbf698 100644 --- a/vcl/source/glyphs/graphite_features.cxx +++ b/vcl/source/glyphs/graphite_features.cxx @@ -207,7 +207,7 @@ bool GrFeatureParser::isCharId(const OString & id, size_t offset, size_t length) for (size_t i = 0; i < length; i++) { if (i > 0 && id[offset+i] == '\0') continue; - if ((id[offset+i] < 0x20) || (id[offset+i] < 0)) + if (id[offset+i] < 0x20 || static_cast<signed char>(id[offset+i]) < 0) return false; if (i==0 && (id[offset+i] < 0x41)) return false; |