From 63fbda87cf9c98b60a0457ef99cf566959bed2a8 Mon Sep 17 00:00:00 2001 From: Octavian Dima <3403191+WopsS@users.noreply.github.com> Date: Wed, 20 Mar 2024 19:40:10 +0200 Subject: [PATCH] Add static cast for RED4EXT_V0_RUNTIME_INDEPENDENT macro --- include/RED4ext/Api/v0/Runtime.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/RED4ext/Api/v0/Runtime.hpp b/include/RED4ext/Api/v0/Runtime.hpp index 26134ebec..6b975e9c1 100644 --- a/include/RED4ext/Api/v0/Runtime.hpp +++ b/include/RED4ext/Api/v0/Runtime.hpp @@ -36,7 +36,9 @@ * @brief Supports all game versions. * @note Only use this if you do not use RED4ext.SDK library, but you want to use RED4ext as a loader only. */ -#define RED4EXT_V0_RUNTIME_INDEPENDENT RED4EXT_V0_FILEVER(-1, -1, -1, -1) +#define RED4EXT_V0_RUNTIME_INDEPENDENT \ + RED4EXT_V0_FILEVER(static_cast(-1), static_cast(-1), static_cast(-1), \ + static_cast(-1)) /* * @brief The latest game version.