mirror of https://github.com/zeldaret/tmc.git
use correct signedness for char in tools
This commit is contained in:
parent
968c0ba5cc
commit
acc75c269d
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue