Skip to content

Commit d32b9d6

Browse files
committed
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 ```
1 parent e9fa0ce commit d32b9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rdparty/nvtt/nvcore/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ NVCORE_API void NV_CDECL nvDebugPrint( const char *msg, ... ) __attribute__((for
166166
namespace nv
167167
{
168168
inline bool isValidPtr(const void * ptr) {
169-
#if NV_CPU_X86_64 || NV_CPU_AARCH64
169+
#if NV_CPU_X86_64 || NV_CPU_AARCH64 || defined(__wasm64__)
170170
if (ptr == NULL) return true;
171171
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
172172
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;

0 commit comments

Comments
 (0)