aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnki_jbig.h
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-30 02:00:12 +0000
committeryzrh <yzrh@noema.org>2022-12-30 02:00:12 +0000
commit5466a441dfad627063ae498ed7359f1af9fb8de7 (patch)
tree90aaf94a8cacfe58e9a9188fcabaa558a4ba92e9 /src/cnki_jbig.h
parent1ce3f89574fa7256ab019eefc96a7362165cca52 (diff)
downloadmelon-5466a441dfad627063ae498ed7359f1af9fb8de7.tar.gz
melon-5466a441dfad627063ae498ed7359f1af9fb8de7.tar.zst
Fix type casting when processing data.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/cnki_jbig.h')
-rw-r--r--src/cnki_jbig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cnki_jbig.h b/src/cnki_jbig.h
index 701b4df..2983607 100644
--- a/src/cnki_jbig.h
+++ b/src/cnki_jbig.h
@@ -27,8 +27,8 @@ typedef struct _dib_t {
uint16_t depth;
uint32_t compression; /* dib_compression_code */
uint32_t size;
- uint32_t resolution_h;
- uint32_t resolution_v;
+ int32_t resolution_h;
+ int32_t resolution_v;
uint32_t colour;
uint32_t colour_used;
} dib_t;