summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-07 11:28:34 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-07 11:28:34 +0000
commit2a07d3d26b4bdec320c5b99cca07a41e5957d514 (patch)
treeb179dea98cfb064c9cd31578f2ed86fc87929a55 /src
parente238148d4241884157f5b6a0ac72d8f2739f6f3f (diff)
[trunk] Another round of fixes for sign conversion warnings.
Update issue 256
Diffstat (limited to 'src')
-rw-r--r--src/lib/openjp2/openjpeg.c4
1 files changed, 2 insertions, 2 deletions
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)