Merge pull request #672 from notyourav/char_fi

use correct signedness for char in tools
This commit is contained in:
Theo 2023-12-28 16:08:45 -08:00 committed by GitHub
commit b32553e490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {
@ -35,4 +35,4 @@ class Reader {
// const int size; // const int size;
}; };
#endif #endif