diff options
author | yzrh <yzrh@noema.org> | 2022-12-30 02:00:12 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-30 02:00:12 +0000 |
commit | 5466a441dfad627063ae498ed7359f1af9fb8de7 (patch) | |
tree | 90aaf94a8cacfe58e9a9188fcabaa558a4ba92e9 /src/cnki.h | |
parent | 1ce3f89574fa7256ab019eefc96a7362165cca52 (diff) | |
download | melon-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |