From: Mathieu Malaterre Date: Fri, 7 Mar 2014 11:28:34 +0000 (+0000) Subject: [trunk] Another round of fixes for sign conversion warnings. X-Git-Tag: version.2.0.1~4^2~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a07d3d26b4bdec320c5b99cca07a41e5957d514;p=openjpeg [trunk] Another round of fixes for sign conversion warnings. Update issue 256 --- diff --git a/src/lib/openjp2/openjpeg.c b/src/lib/openjp2/openjpeg.c index 05a9938d..0522acb0 100644 --- a/src/lib/openjp2/openjpeg.c +++ b/src/lib/openjp2/openjpeg.c @@ -94,10 +94,10 @@ static OPJ_UINT64 opj_get_data_length_from_file (FILE * p_file) OPJ_OFF_T file_length = 0; OPJ_FSEEK(p_file, 0, SEEK_END); - file_length = (OPJ_UINT64)OPJ_FTELL(p_file); + file_length = (OPJ_OFF_T)OPJ_FTELL(p_file); OPJ_FSEEK(p_file, 0, SEEK_SET); - return file_length; + return (OPJ_UINT64)file_length; } static OPJ_SIZE_T opj_write_from_file (void * p_buffer, OPJ_SIZE_T p_nb_bytes, FILE * p_file)