use correct signedness for char in tools

This commit is contained in:
theo3 2023-12-28 16:04:32 -08:00
parent 968c0ba5cc
commit acc75c269d
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class Reader {
[[nodiscard]] s8 read_s8() { [[nodiscard]] s8 read_s8() {
// TODO range check // TODO range check
return data[static_cast<unsigned long>(cursor++)]; return static_cast<s8>(data[static_cast<unsigned long>(cursor++)]);
} }
[[nodiscard]] u8 read_u8() { [[nodiscard]] u8 read_u8() {