summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo <65437533+notyourav@users.noreply.github.com>2023-12-28 16:08:45 -0800
committerGitHub <noreply@github.com>2023-12-28 16:08:45 -0800
commitb32553e4902f91481ec9336a238d26bd355c7d2f (patch)
tree17b9e1d60dd9058266597ee428ff7f0e5368deec
parent3153e421156fdd71779c4e20673e553d20ff63f8 (diff)
parentacc75c269df3ddcc3eea32bae5725c94a132fa24 (diff)
Merge pull request #672 from notyourav/char_fi
use correct signedness for char in tools
-rw-r--r--tools/src/asset_processor/reader.h4
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