diff options
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/imgui-inspect.cpp | 2 | ||||
| -rw-r--r-- | editor/imgui-tiles.cpp | 2 | ||||
| -rw-r--r-- | editor/inspect.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/editor/imgui-inspect.cpp b/editor/imgui-inspect.cpp index b1ea923c..534dd1cf 100644 --- a/editor/imgui-inspect.cpp +++ b/editor/imgui-inspect.cpp @@ -26,7 +26,7 @@ void app::draw_inspector() const auto dpi = M->dpi_scale(); - for (auto i = inspectors.size()-1; i != -1_uz; i--) + for (auto i = inspectors.size()-1; i != -1uz; i--) { auto [e, target] = inspectors[i]; fm_debug_assert(e); diff --git a/editor/imgui-tiles.cpp b/editor/imgui-tiles.cpp index ead843a8..0dbe10d3 100644 --- a/editor/imgui-tiles.cpp +++ b/editor/imgui-tiles.cpp @@ -49,7 +49,7 @@ void app::draw_editor_tile_pane_atlas(tile_editor& ed, StringView name, const st }; const bool perm_selected = ed.is_permutation_selected(atlas); constexpr size_t per_row = 8; - for (auto i = 0_uz; i < N; i++) + for (auto i = 0uz; i < N; i++) { const bool selected = ed.is_tile_selected(atlas, i); if (i > 0 && i % per_row == 0) diff --git a/editor/inspect.cpp b/editor/inspect.cpp index df286391..415dcdff 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -153,7 +153,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r ret = ImGui::SliderScalarN(label, igdt, &value, T::Size, &min, &max); break; } - for (auto i = 0_uz; i < T::Size; i++) + for (auto i = 0uz; i < T::Size; i++) value[i] = std::clamp(value[i], min[i], max[i]); } |
