aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2023-01-01 00:42:20 +0000
committeryzrh <yzrh@noema.org>2023-01-01 00:42:20 +0000
commit70e1e7ea97e6bb7ac9714f75fcc860fd97f34a45 (patch)
tree686b9625fef5e88f15ad97a82f4957f9c9a148e2 /src
parentbffb8ce8a4f21f3e20513e7f76a949acb190e14a (diff)
downloadmelon-70e1e7ea97e6bb7ac9714f75fcc860fd97f34a45.tar.gz
melon-70e1e7ea97e6bb7ac9714f75fcc860fd97f34a45.tar.zst
Fix JBIG decoder data type.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src')
-rw-r--r--src/jbig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jbig.c b/src/jbig.c
index c3c501b..5b262e6 100644
--- a/src/jbig.c
+++ b/src/jbig.c
@@ -99,7 +99,7 @@ static int _height;
static int _width_padded;
static int _ret_pos;
-static char *_ret;
+static unsigned char *_ret;
static int _scd_size;
static unsigned char *_scd;
@@ -304,7 +304,7 @@ strdec_jbig(char **bitmap, int width, int height,
memset(*bitmap, 0, _height * _width_padded);
_ret_pos = 0;
- _ret = *bitmap;
+ _ret = (unsigned char *) *bitmap;
_scd_size = jbig_size;
_scd = (unsigned char *) jbig;