From b08271a76bfe1ff0aea6d8e4e43f45ee99746ae6 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Tue, 30 Oct 2018 12:59:37 -0700 Subject: [PATCH] Fix aarch64 build clang doesn't allow to compile the code due to `cast from pointer to smaller type uint32` error. Use 64bit code path for NV_CPU_AARCH64 as well as NV_CPU_X86_64. --- 3rdparty/nvtt/nvcore/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/nvtt/nvcore/debug.h b/3rdparty/nvtt/nvcore/debug.h index 61fbd2f..31d0f51 100644 --- a/3rdparty/nvtt/nvcore/debug.h +++ b/3rdparty/nvtt/nvcore/debug.h @@ -165,7 +165,7 @@ NVCORE_API void NV_CDECL nvDebugPrint( const char *msg, ... ) __attribute__((for namespace nv { inline bool isValidPtr(const void * ptr) { - #if NV_CPU_X86_64 + #if NV_CPU_X86_64 || NV_CPU_AARCH64 if (ptr == NULL) return true; if (reinterpret_cast(ptr) < 0x10000ULL) return false; if (reinterpret_cast(ptr) >= 0x000007FFFFFEFFFFULL) return false;