diff --git a/Jolt/Core/Core.h b/Jolt/Core/Core.h index 2caa59ca7..7ecb91b93 100644 --- a/Jolt/Core/Core.h +++ b/Jolt/Core/Core.h @@ -195,7 +195,11 @@ #elif defined(JPH_PLATFORM_WASM) // WebAssembly CPU architecture #define JPH_CPU_WASM - #define JPH_CPU_ADDRESS_BITS 32 + #if defined(__wasm64__) + #define JPH_CPU_ADDRESS_BITS 64 + #else + #define JPH_CPU_ADDRESS_BITS 32 + #endif #define JPH_VECTOR_ALIGNMENT 16 #define JPH_DVECTOR_ALIGNMENT 32 #ifdef __wasm_simd128__