diff --git a/renderdoc/os/posix/android/android_threading.cpp b/renderdoc/os/posix/android/android_threading.cpp index 73700aa0b..5e51a302c 100644 --- a/renderdoc/os/posix/android/android_threading.cpp +++ b/renderdoc/os/posix/android/android_threading.cpp @@ -64,7 +64,7 @@ Semaphore *Semaphore::Create() int err = sem_init(&sem->h, 0, 0); // only documented errors are too large initial value (impossible for 0) or for shared semaphores // going wrong (we're not shared) - RDCASSERT(err == 0, errno); + RDCASSERT(err == 0, (int)errno); return sem; } diff --git a/renderdoc/os/posix/linux/linux_threading.cpp b/renderdoc/os/posix/linux/linux_threading.cpp index ce6b7f806..cd07e5f86 100644 --- a/renderdoc/os/posix/linux/linux_threading.cpp +++ b/renderdoc/os/posix/linux/linux_threading.cpp @@ -66,7 +66,7 @@ Semaphore *Semaphore::Create() int err = sem_init(&sem->h, 0, 0); // only documented errors are too large initial value (impossible for 0) or for shared semaphores // going wrong (we're not shared) - RDCASSERT(err == 0, errno); + RDCASSERT(err == 0, (int)errno); return sem; }