mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
Fixed a signed/unsigned conversion warning when compiling for OSX target
This commit is contained in:
@@ -410,7 +410,7 @@ static int mmProtFromMemoryFlags(MemoryFlags memoryFlags) noexcept {
|
|||||||
#if defined(__APPLE__) && TARGET_OS_OSX
|
#if defined(__APPLE__) && TARGET_OS_OSX
|
||||||
static int getOSXVersion() noexcept {
|
static int getOSXVersion() noexcept {
|
||||||
// MAP_JIT flag required to run unsigned JIT code is only supported by kernel version 10.14+ (Mojave).
|
// 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();
|
int ver = globalVersion.load();
|
||||||
if (!ver) {
|
if (!ver) {
|
||||||
|
|||||||
Reference in New Issue
Block a user