Sitelet https://github.com/ObEngine/ObEngine/commit/bfb05260cf5d0223393cafb2a727bf505229e194
Skip to content

Commit bfb0526

Browse files
committed
fix: fixed long long to long in max() comp
1 parent c6eedab commit bfb0526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Core/Tiles/Layer.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ namespace obe::tiles
271271
const uint32_t tileset_tile_width = tileset.get_tile_width();
272272
const uint32_t tileset_tile_height = tileset.get_tile_width();
273273
const size_t span_start
274-
= std::max(0ll, ((camera_x / tileset_tile_width)) * 4 * m_height);
274+
= std::max(0l, ((camera_x / tileset_tile_width)) * 4 * m_height);
275275
const size_t span_end = std::min(layer.getVertexCount(),
276276
static_cast<size_t>((((camera_x + camera_width) / tileset_tile_width) + 1) * 4 * m_height));
277277
layer.setSpan(span_start, span_end);

0 commit comments

Comments
 (0)