Skip to content

Commit

Permalink
Fix compiler warning (signed / unsigned mismatch)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Feb 18, 2016
1 parent f4366c1 commit 8a04050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/scrollview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a04050

Please sign in to comment.