diff options
| author | theo3 <arisstephenson2@gmail.com> | 2023-12-28 16:04:32 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2023-12-28 16:04:32 -0800 |
| commit | acc75c269df3ddcc3eea32bae5725c94a132fa24 (patch) | |
| tree | ad7f7570cff5ff5cdabcd439c1cd96e90cad4bf7 /tools/src/asset_processor/reader.h | |
| parent | 968c0ba5cc8d9c353833ca64ce1f077852689466 (diff) | |
use correct signedness for char in tools
Diffstat (limited to 'tools/src/asset_processor/reader.h')
| -rw-r--r-- | tools/src/asset_processor/reader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/asset_processor/reader.h b/tools/src/asset_processor/reader.h index dc2159fc..d31bf0f0 100644 --- a/tools/src/asset_processor/reader.h +++ b/tools/src/asset_processor/reader.h @@ -13,7 +13,7 @@ class Reader { [[nodiscard]] s8 read_s8() { // TODO range check - return data[static_cast<unsigned long>(cursor++)]; + return static_cast<s8>(data[static_cast<unsigned long>(cursor++)]); } [[nodiscard]] u8 read_u8() { @@ -35,4 +35,4 @@ class Reader { // const int size; }; -#endif
\ No newline at end of file +#endif |
