From d32b9d63249e93f24f5bf71c246410a81c98343d Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Sun, 28 Apr 2024 20:32:37 +0100 Subject: [PATCH] Fix Emscripten wasm64 compilation error. Fixes the following compile error: ``` bimg/3rdparty/nvtt/nvcore/debug.h:177:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information ``` --- 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 f92eb60..448a229 100644 --- a/3rdparty/nvtt/nvcore/debug.h +++ b/3rdparty/nvtt/nvcore/debug.h @@ -166,7 +166,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 || NV_CPU_AARCH64 + #if NV_CPU_X86_64 || NV_CPU_AARCH64 || defined(__wasm64__) if (ptr == NULL) return true; if (reinterpret_cast(ptr) < 0x10000ULL) return false; if (reinterpret_cast(ptr) >= 0x000007FFFFFEFFFFULL) return false;