From abdc3c2b4f57533d2098b714e2a0902cf2a3c931 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 2 Sep 2024 18:10:37 +0100 Subject: [PATCH] Fix android compilation --- renderdoc/os/posix/android/android_threading.cpp | 2 +- renderdoc/os/posix/linux/linux_threading.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }