Fixed a signed/unsigned conversion warning when compiling for OSX target

This commit is contained in:
kobalicek
2023-01-17 13:08:22 +01:00
parent 3ee3846283
commit f97475e5ab

View File

@@ -410,7 +410,7 @@ static int mmProtFromMemoryFlags(MemoryFlags memoryFlags) noexcept {
#if defined(__APPLE__) && TARGET_OS_OSX
static int getOSXVersion() noexcept {
// MAP_JIT flag required to run unsigned JIT code is only supported by kernel version 10.14+ (Mojave).
static std::atomic<uint32_t> globalVersion;
static std::atomic<int> globalVersion;
int ver = globalVersion.load();
if (!ver) {