From: Mathieu Malaterre Date: Mon, 10 Mar 2014 12:22:56 +0000 (+0000) Subject: [trunk] Fix simple sign conversion warnings only visible on 32bits arch X-Git-Tag: version.2.0.1~4^2~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b01c1240cf20bebe6b315a3a9faffe9f8142598b;p=openjpeg [trunk] Fix simple sign conversion warnings only visible on 32bits arch --- 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;