Fix JBIG decoder data type.

Signed-off-by: yzrh <yzrh@noema.org>
This commit is contained in:
yzrh 2023-01-01 00:42:20 +00:00
parent bffb8ce8a4
commit 70e1e7ea97

View file

@ -99,7 +99,7 @@ static int _height;
static int _width_padded; static int _width_padded;
static int _ret_pos; static int _ret_pos;
static char *_ret; static unsigned char *_ret;
static int _scd_size; static int _scd_size;
static unsigned char *_scd; static unsigned char *_scd;
@ -304,7 +304,7 @@ strdec_jbig(char **bitmap, int width, int height,
memset(*bitmap, 0, _height * _width_padded); memset(*bitmap, 0, _height * _width_padded);
_ret_pos = 0; _ret_pos = 0;
_ret = *bitmap; _ret = (unsigned char *) *bitmap;
_scd_size = jbig_size; _scd_size = jbig_size;
_scd = (unsigned char *) jbig; _scd = (unsigned char *) jbig;