Use correct macros when clamping to constant uint64 bounds

This commit is contained in:
Stepland 2022-12-27 14:17:08 +01:00
parent 1a6edcb7f7
commit dee800e2dd

View File

@ -1065,7 +1065,7 @@ void EditorState::display_editor_settings() {
) {
static const std::uint64_t step = 1;
if (ImGui::InputScalar("Snap##Editor Settings", ImGuiDataType_U64, &snap, &step, nullptr, "%d")) {
snap = std::clamp(snap, 1UL, 1000UL);
snap = std::clamp(snap, UINT64_C(1), UINT64_C(1000));
};
ImGui::SameLine();
feis::HelpMarker(