summaryrefslogtreecommitdiff
path: root/drivers/png
diff options
context:
space:
mode:
authorJohan Manuel <johan.manuel@live.fr>2016-07-26 15:05:30 +0200
committerJohan Manuel <johan.manuel@live.fr>2016-08-13 13:21:35 +0200
commita4674bda47ddeed7cc929bafdcd89b6bd156ee30 (patch)
tree4b55115407317137c96f81012f20d2793c253379 /drivers/png
parent67b29e3b9ea9630b84477a4bdc71b41b25191872 (diff)
Fix some comparisons between signed and unsigned integers
Diffstat (limited to 'drivers/png')
-rw-r--r--drivers/png/image_loader_png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/png/image_loader_png.cpp b/drivers/png/image_loader_png.cpp
index e10ac7493f..4967b0f9df 100644
--- a/drivers/png/image_loader_png.cpp
+++ b/drivers/png/image_loader_png.cpp
@@ -270,7 +270,7 @@ static void user_read_data(png_structp png_ptr,png_bytep data, png_size_t p_leng
PNGReadStatus *rstatus;
rstatus=(PNGReadStatus*)png_get_io_ptr(png_ptr);
- int to_read=p_length;
+ png_size_t to_read=p_length;
if (rstatus->size>=0) {
to_read = MIN( p_length, rstatus->size - rstatus->offset);
}