summaryrefslogtreecommitdiff
path: root/src/geometry/debug_font_buffer.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-23 02:46:15 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-10-23 02:46:15 -0700
commit10cb83579feb53e7524ec899c0bff19161877669 (patch)
treea8bbac3634560412f03cd2404348c06ee7b47bfc /src/geometry/debug_font_buffer.cpp
parent40a933ddce390b7926c25bb00a95f34fd76453ae (diff)
downloadqtlocation-mapboxgl-10cb83579feb53e7524ec899c0bff19161877669.tar.gz
gcc fixes
Diffstat (limited to 'src/geometry/debug_font_buffer.cpp')
-rw-r--r--src/geometry/debug_font_buffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/geometry/debug_font_buffer.cpp b/src/geometry/debug_font_buffer.cpp
index 387a646299..2a0924a1c4 100644
--- a/src/geometry/debug_font_buffer.cpp
+++ b/src/geometry/debug_font_buffer.cpp
@@ -10,9 +10,9 @@ using namespace mbgl;
void DebugFontBuffer::addText(const char *text, double left, double baseline, double scale) {
uint16_t *coords = nullptr;
- size_t length = strlen(text);
- for (size_t i = 0; i < length; ++i) {
- if (text[i] < 32 || text[i] > 127) {
+ const size_t len = strlen(text);
+ for (size_t i = 0; i < len; ++i) {
+ if (text[i] < 32 || (unsigned char)(text[i]) > 127) {
continue;
}