Fix uintptr_t/u32 overloads

This commit is contained in:
Luke Street
2026-02-28 20:51:16 -07:00
parent acdf6ad70f
commit db924a6de5
2 changed files with 7 additions and 8 deletions
+7 -4
View File
@@ -18,12 +18,15 @@ public:
s32 write(const void*, s32);
void write(const char*);
#ifdef TARGET_PC
JSUOutputStream& operator<<(uintptr_t param_0) {
write(&param_0, sizeof(uintptr_t));
JSUOutputStream& operator<<(u64 param_0) {
write(&param_0, sizeof(u64));
return *this;
}
JSUOutputStream& operator<<(s64 param_0) {
write(&param_0, sizeof(s64));
return *this;
}
#endif
JSUOutputStream& operator<<(u32 param_0) {
write(&param_0, sizeof(u32));
-4
View File
@@ -18,11 +18,7 @@ T* JSUConvertOffsetToPtr(const void* ptr, uintptr_t offset) {
*
*/
template <typename T>
#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;