summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c b/src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c
index cf8156dc20..c0d25e3c01 100644
--- a/src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c
+++ b/src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c
@@ -564,7 +564,7 @@ evas_image_load_file_data_bmp(void *loader_data,
564 564
565 if ((scale_ratio == 1) || (header.comp !=0)) 565 if ((scale_ratio == 1) || (header.comp !=0))
566 { 566 {
567 if (image_size < fsize - position) 567 if (image_size < (int) fsize - position)
568 image_size = fsize - position; 568 image_size = fsize - position;
569 buffer = malloc(image_size + 8); // add 8 for padding to avoid checks 569 buffer = malloc(image_size + 8); // add 8 for padding to avoid checks
570 } 570 }