Skip to content

Commit

Permalink
Merge pull request #672 from notyourav/char_fi
Browse files Browse the repository at this point in the history
use correct signedness for char in tools
  • Loading branch information
hytopoulos committed Dec 29, 2023
2 parents 3153e42 + acc75c2 commit b32553e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/src/asset_processor/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -35,4 +35,4 @@ class Reader {
// const int size;
};

#endif
#endif

0 comments on commit b32553e

Please sign in to comment.