From 5466a441dfad627063ae498ed7359f1af9fb8de7 Mon Sep 17 00:00:00 2001 From: yzrh Date: Fri, 30 Dec 2022 02:00:12 +0000 Subject: Fix type casting when processing data. Signed-off-by: yzrh --- src/cnki.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cnki.h') diff --git a/src/cnki.h b/src/cnki.h index e9cc5d1..7d7d15e 100644 --- a/src/cnki.h +++ b/src/cnki.h @@ -58,10 +58,10 @@ typedef struct _hn_image_t { int32_t format; /* hn_code */ int32_t address; int32_t size; - int16_t x; - int16_t y; - int16_t w; - int16_t h; + uint16_t x; + uint16_t y; + uint16_t w; + uint16_t h; char *image; } hn_image_t; -- cgit v1.2.3