From 65f728c0ceac8e7219532b89d6d684c35d34da8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 21 Feb 2017 15:02:10 -0800 Subject: [PATCH] Cleanup. --- src/mutex.cpp | 3 ++- src/string.cpp | 2 +- src/thread.cpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mutex.cpp b/src/mutex.cpp index d0b61c3..5ba7036 100644 --- a/src/mutex.cpp +++ b/src/mutex.cpp @@ -11,7 +11,8 @@ || BX_PLATFORM_LINUX \ || BX_PLATFORM_NACL \ || BX_PLATFORM_IOS \ - || BX_PLATFORM_OSX + || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 # include #elif BX_PLATFORM_WINDOWS \ || BX_PLATFORM_WINRT \ diff --git a/src/string.cpp b/src/string.cpp index 3c81700..7d0cf7f 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -143,7 +143,7 @@ namespace bx const char* ptr = _str; for (; 0 < _max && *ptr != '\0'; ++ptr, --_max) {}; - return ptr - _str; + return int32_t(ptr - _str); } int32_t strlncpy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num) diff --git a/src/thread.cpp b/src/thread.cpp index 0937405..30e1187 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -9,7 +9,8 @@ || BX_PLATFORM_LINUX \ || BX_PLATFORM_NACL \ || BX_PLATFORM_IOS \ - || BX_PLATFORM_OSX + || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 # include # if defined(__FreeBSD__) # include