aboutsummaryrefslogtreecommitdiffstats
path: root/src/cnki.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.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.h')
-rw-r--r--src/cnki.h8
1 files changed, 4 insertions, 4 deletions
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;