From db924a6de5b1c10eca8d47e49f501f9985a56044 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 28 Feb 2026 20:51:16 -0700 Subject: [PATCH] Fix uintptr_t/u32 overloads --- include/JSystem/JSupport/JSUOutputStream.h | 11 +++++++---- include/JSystem/JSupport/JSupport.h | 4 ---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/JSystem/JSupport/JSUOutputStream.h b/include/JSystem/JSupport/JSUOutputStream.h index 25f5e70a37..4cc9ce459c 100644 --- a/include/JSystem/JSupport/JSUOutputStream.h +++ b/include/JSystem/JSupport/JSUOutputStream.h @@ -18,12 +18,15 @@ public: s32 write(const void*, s32); void write(const char*); -#ifdef TARGET_PC - JSUOutputStream& operator<<(uintptr_t param_0) { - write(¶m_0, sizeof(uintptr_t)); + JSUOutputStream& operator<<(u64 param_0) { + write(¶m_0, sizeof(u64)); + return *this; + } + + JSUOutputStream& operator<<(s64 param_0) { + write(¶m_0, sizeof(s64)); return *this; } -#endif JSUOutputStream& operator<<(u32 param_0) { write(¶m_0, sizeof(u32)); diff --git a/include/JSystem/JSupport/JSupport.h b/include/JSystem/JSupport/JSupport.h index 1940e6dff8..c982af6103 100644 --- a/include/JSystem/JSupport/JSupport.h +++ b/include/JSystem/JSupport/JSupport.h @@ -18,11 +18,7 @@ T* JSUConvertOffsetToPtr(const void* ptr, uintptr_t offset) { * */ template -#if TARGET_PC -T* JSUConvertOffsetToPtr(const void* ptr, u32 offset) { -#else T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) { -#endif T* ret; if (offset == 0) { ret = NULL;