From b01c1240cf20bebe6b315a3a9faffe9f8142598b Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 10 Mar 2014 12:22:56 +0000 Subject: [PATCH] [trunk] Fix simple sign conversion warnings only visible on 32bits arch --- src/bin/jp2/convert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index e946ca18..90684a2c 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -712,7 +712,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) /* Place the cursor at the beginning of the image information */ fseek(IN, 0, SEEK_SET); - fseek(IN, File_h.bfOffBits, SEEK_SET); + fseek(IN, (long)File_h.bfOffBits, SEEK_SET); W = Info_h.biWidth; H = Info_h.biHeight; @@ -773,7 +773,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) /* Place the cursor at the beginning of the image information */ fseek(IN, 0, SEEK_SET); - fseek(IN, File_h.bfOffBits, SEEK_SET); + fseek(IN, (long)File_h.bfOffBits, SEEK_SET); W = Info_h.biWidth; H = Info_h.biHeight; @@ -925,7 +925,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) /* Place the cursor at the beginning of the image information */ fseek(IN, 0, SEEK_SET); - fseek(IN, File_h.bfOffBits, SEEK_SET); + fseek(IN, (long)File_h.bfOffBits, SEEK_SET); W = Info_h.biWidth; H = Info_h.biHeight;