mirror of
https://github.com/zeldaret/tmc
synced 2026-05-28 08:25:51 -04:00
use correct signedness for char in tools
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user