[nostalgia/gfx] Replace static_cast compare with std::cmp_equal
This commit is contained in:
parent
c19d7f4ea3
commit
52d8c0bdc8
@ -336,7 +336,7 @@ struct TileSheetV5 {
|
||||
[[nodiscard]]
|
||||
constexpr bool valid(TileSheetV5::SubSheet const&ss) noexcept {
|
||||
if (ss.subsheets.empty()) {
|
||||
return static_cast<size_t>(ss.columns * ss.rows * PixelsPerTile) == ss.pixels.size();
|
||||
return std::cmp_equal(ss.columns * ss.rows * PixelsPerTile, ss.pixels.size());
|
||||
} else {
|
||||
return ss.pixels.empty() && ox::all_of(ss.subsheets.begin(), ss.subsheets.end(),
|
||||
[](TileSheetV5::SubSheet const&s) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user