summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-11-08 16:15:40 +0000
committerAntonin Descampe <antonin@gmail.com>2005-11-08 16:15:40 +0000
commite3981542128142fabd46cd7bb05c0f61a59c7396 (patch)
tree5d21aa04b0739da5766e4a48a75588ed8bed8610 /libopenjpeg
parent0ea26e7ba6c6951baec9d43841cfa78d4d9832ce (diff)
small changes to remove warnings related to signedness
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/j2k.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c
index 976642c5..9e020db1 100644
--- a/libopenjpeg/j2k.c
+++ b/libopenjpeg/j2k.c
@@ -988,7 +988,7 @@ j2k_encode(j2k_image_t * img, j2k_cp_t * cp, char *output,
int len, char *index)
{
int tileno, compno, layno, resno, precno, pack_nb, x, y;
- char *dest = NULL;
+ unsigned char *dest = NULL;
FILE *INDEX = NULL;
FILE *f = NULL;
@@ -1002,7 +1002,7 @@ j2k_encode(j2k_image_t * img, j2k_cp_t * cp, char *output,
fprintf(stderr, "failed to open %s for writing\n", output);
return 1;
}
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}
@@ -1062,7 +1062,7 @@ j2k_encode(j2k_image_t * img, j2k_cp_t * cp, char *output,
if (cp->intermed_file == 1) {
/* new dest for each tile */
free(dest);
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}
j2k_curtileno = tileno;
@@ -1124,7 +1124,7 @@ j2k_encode(j2k_image_t * img, j2k_cp_t * cp, char *output,
if (cp->intermed_file == 1) {
free(dest);
- dest = (char *) malloc(len);
+ dest = (unsigned char *) malloc(len);
cio_init(dest, len);
}