From 3cfef81753a087c057d217ab8e9ff36d75a93358 Mon Sep 17 00:00:00 2001 From: Lurs <2795933+Lurs@users.noreply.github.com> Date: Tue, 24 Feb 2026 20:18:21 +0100 Subject: [PATCH] Fix JSUOutputStream uintptr_t operator conflict on MSVC x86. uintptr_t == u32 == unsigned int on 32-bit MSVC since u32 was changed from unsigned long to unsigned int for TARGET_PC. Guard the uintptr_t overload to x64 only where uintptr_t != u32. --- include/JSystem/JSupport/JSUOutputStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/JSystem/JSupport/JSUOutputStream.h b/include/JSystem/JSupport/JSUOutputStream.h index 81c8f9d24d..570ed1e9db 100644 --- a/include/JSystem/JSupport/JSUOutputStream.h +++ b/include/JSystem/JSupport/JSUOutputStream.h @@ -18,7 +18,7 @@ public: s32 write(const void*, s32); void write(const char*); -#ifdef _MSVC_LANG +#if defined(_MSVC_LANG) && defined(_WIN64) JSUOutputStream& operator<<(uintptr_t param_0) { write(¶m_0, sizeof(uintptr_t)); return *this;