Skip to content

Commit

Permalink
Add static cast for RED4EXT_V0_RUNTIME_INDEPENDENT macro
Browse files Browse the repository at this point in the history
  • Loading branch information
wopss committed Mar 20, 2024
1 parent bac7647 commit 63fbda8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/RED4ext/Api/v0/Runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint16_t>(-1), static_cast<uint16_t>(-1), static_cast<uint16_t>(-1), \
static_cast<uint16_t>(-1))

/*
* @brief The latest game version.
Expand Down

0 comments on commit 63fbda8

Please sign in to comment.