mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-07 20:11:46 -04:00
Fix uintptr_t/u32 overloads
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user