From 8a04050df3d6383783b078a234173e5b305e727a Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 22 Dec 2015 15:18:40 +0100 Subject: [PATCH] Fix compiler warning (signed / unsigned mismatch) Signed-off-by: Stefan Weil --- viewer/scrollview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/scrollview.cpp b/viewer/scrollview.cpp index 275c57fcb7..ac059d5469 100644 --- a/viewer/scrollview.cpp +++ b/viewer/scrollview.cpp @@ -794,7 +794,7 @@ void ScrollView::Image(struct Pix* image, int x_pos, int y_pos) { int remainder = 0; int bits_left = 0; int code_len = 0; - for (int i = 0; i < size; ++i) { + for (size_t i = 0; i < size; ++i) { int code = (data[i] >> (bits_left + 2)) | remainder; base64[code_len++] = kBase64Table[code & 63]; bits_left += 2;