projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trunk] Fix two simple warnings about sign mismatch
[openjpeg.git]
/
tests
/
unit
/
testempty2.c
diff --git
a/tests/unit/testempty2.c
b/tests/unit/testempty2.c
index e342e01503cdc63d9b40d85b3fb396e14cfb63cd..764b14cc1ffa00f9ff6cf1886b399963d7344b4a 100644
(file)
--- a/
tests/unit/testempty2.c
+++ b/
tests/unit/testempty2.c
@@
-58,15
+58,15
@@
int main(int argc, char *argv[])
const char * v = opj_version();
const OPJ_COLOR_SPACE color_space = OPJ_CLRSPC_GRAY;
const char * v = opj_version();
const OPJ_COLOR_SPACE color_space = OPJ_CLRSPC_GRAY;
- int numcomps = 1;
- int i;
- int image_width = 256;
- int image_height = 256;
+
unsigned
int numcomps = 1;
+
unsigned
int i;
+
unsigned
int image_width = 256;
+
unsigned
int image_height = 256;
opj_cparameters_t parameters;
opj_cparameters_t parameters;
-
int subsampling_dx = parameters.
subsampling_dx;
-
int subsampling_dy = parameters.
subsampling_dy;
+
unsigned int
subsampling_dx;
+
unsigned int
subsampling_dy;
const char outputfile[] = "testempty2.j2k";
opj_image_cmptparm_t cmptparm;
const char outputfile[] = "testempty2.j2k";
opj_image_cmptparm_t cmptparm;
@@
-80,6
+80,8
@@
int main(int argc, char *argv[])
opj_set_default_encoder_parameters(¶meters);
parameters.cod_format = J2K_CFMT;
puts(v);
opj_set_default_encoder_parameters(¶meters);
parameters.cod_format = J2K_CFMT;
puts(v);
+ subsampling_dx = (unsigned int)parameters.subsampling_dx;
+ subsampling_dy = (unsigned int)parameters.subsampling_dy;
cmptparm.prec = 8;
cmptparm.bpp = 8;
cmptparm.sgnd = 0;
cmptparm.prec = 8;
cmptparm.bpp = 8;
cmptparm.sgnd = 0;