summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-07 11:59:29 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-07 11:59:29 +0000
commit740924fa61f106fc5126df2d626e0c9091ea8e34 (patch)
treebd6b204621e6aeeb8d79f66c09cf27e6d89bff8e /src
parent01b4bb5447515739770319fa62684a1b3a9e2881 (diff)
[trunk] Another round of fixes for sign conversion warnings.
Update issue 256
Diffstat (limited to 'src')
-rw-r--r--src/bin/jp2/opj_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/jp2/opj_dump.c b/src/bin/jp2/opj_dump.c
index 19ed2971..b849149f 100644
--- a/src/bin/jp2/opj_dump.c
+++ b/src/bin/jp2/opj_dump.c
@@ -437,8 +437,8 @@ int main(int argc, char *argv[])
dirptr=(dircnt_t*)malloc(sizeof(dircnt_t));
if(dirptr){
- dirptr->filename_buf = (char*)malloc(num_images*OPJ_PATH_LEN*sizeof(char)); /* Stores at max 10 image file names*/
- dirptr->filename = (char**) malloc(num_images*sizeof(char*));
+ dirptr->filename_buf = (char*)malloc((size_t)num_images*OPJ_PATH_LEN*sizeof(char)); /* Stores at max 10 image file names*/
+ dirptr->filename = (char**) malloc((size_t)num_images*sizeof(char*));
if(!dirptr->filename_buf){
return EXIT_FAILURE;