From 35fdd475ee034738ea00ece38f3bb72ec75f6b2c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 18 May 2024 22:13:53 +0300 Subject: [PATCH] msvc build fix --- src/data/dynamic.hpp | 1 + src/graphics/ui/elements/TextBox.cpp | 2 +- src/logic/CommandsInterpreter.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data/dynamic.hpp b/src/data/dynamic.hpp index a9dc81c1..93e87b4b 100644 --- a/src/data/dynamic.hpp +++ b/src/data/dynamic.hpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/src/graphics/ui/elements/TextBox.cpp b/src/graphics/ui/elements/TextBox.cpp index 8b012b8a..091b944c 100644 --- a/src/graphics/ui/elements/TextBox.cpp +++ b/src/graphics/ui/elements/TextBox.cpp @@ -652,7 +652,7 @@ void TextBox::setCaret(size_t position) { if (realoffset-width > 0) { setTextOffset(textOffset + realoffset-width); } else if (realoffset < 0) { - setTextOffset(std::max(textOffset + realoffset, 0LU)); + setTextOffset(std::max(textOffset + realoffset, static_cast(0))); } } diff --git a/src/logic/CommandsInterpreter.cpp b/src/logic/CommandsInterpreter.cpp index 54a99901..e157cbb4 100644 --- a/src/logic/CommandsInterpreter.cpp +++ b/src/logic/CommandsInterpreter.cpp @@ -320,7 +320,7 @@ public: dynamic::Value value = dynamic::NONE; if (peek() == '~') { relative = true; - value = 0L; + value = static_cast(0); nextChar(); }