From 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Mar 2023 23:42:07 +0100 Subject: pre-declare integer types without cstddef/cstdint --- editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/editor.cpp') diff --git a/editor/editor.cpp b/editor/editor.cpp index cfb36480..f09030dc 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -69,10 +69,10 @@ void editor::on_mouse_move(world& world, global_coords& pos, int mods) const auto [minx, maxx] = std::minmax(draw_coord.x, last.draw_coord.x); const auto [miny, maxy] = std::minmax(draw_coord.y, last.draw_coord.y); if (draw_offset[0]) - for (std::uint32_t i = minx; i <= maxx; i++) + for (uint32_t i = minx; i <= maxx; i++) on_click_(world, { i, draw_coord.y }, last.btn); else - for (std::uint32_t j = miny; j <= maxy; j++) + for (uint32_t j = miny; j <= maxy; j++) on_click_(world, { draw_coord.x, j }, last.btn); } else -- cgit v1.2.3