diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 07:53:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 07:53:50 +0100 |
commit | 20bccce1e4fd7233b452d4d7161fba94b8b28500 (patch) | |
tree | 409c6813de477084f3edf974f32a6f52d3ad282f /editor/inspect.cpp | |
parent | 6905b3c68d1bcca661295f3d43fc4d75494065a9 (diff) |
a
Diffstat (limited to 'editor/inspect.cpp')
-rw-r--r-- | editor/inspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp index bd1329e0..f0a55748 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -99,7 +99,7 @@ void do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r { auto [min, max] = accessor.get_range(datum).convert<T>(); constexpr auto igdt = IGDT<T>; - T step = 1, *step_ = !std::is_floating_point_v<T> ? &step : nullptr; + T step(1), *step_ = !std::is_floating_point_v<T> ? &step : nullptr; switch (repr) { default: fm_warn_once("invalid repr enum value '%zu'", (std::size_t)repr); break; |