return;
}
if (component->prec < precision) {
- shift = precision - component->prec;
+ shift = (int)(precision - component->prec);
} else {
- shift = component->prec - precision;
+ shift = (int)(component->prec - precision);
}
len = (OPJ_SIZE_T)component->w * (OPJ_SIZE_T)component->h;
}
w = raw_cp->rawWidth;
h = raw_cp->rawHeight;
- cmptparm = (opj_image_cmptparm_t*) calloc(numcomps,sizeof(opj_image_cmptparm_t));
+ cmptparm = (opj_image_cmptparm_t*) calloc((OPJ_UINT32)numcomps,sizeof(opj_image_cmptparm_t));
if (!cmptparm) {
fprintf(stderr, "Failed to allocate image components parameters !!\n");
fprintf(stderr,"Aborting\n");