summaryrefslogtreecommitdiff
path: root/libs/JSystem/include
diff options
context:
space:
mode:
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>2026-04-11 08:42:00 +0200
committerGitHub <noreply@github.com>2026-04-10 23:42:00 -0700
commitdabd6961a674f23ec0df8f2b4d16ba12e1e090e5 (patch)
tree573d319da2c7316e5f95f7c095553446931070df /libs/JSystem/include
parentbcd5a9639182af3658f5e6333dcca3288642fc8f (diff)
Couple sizeof(CMemBlock)s (#3143)
Diffstat (limited to 'libs/JSystem/include')
-rw-r--r--libs/JSystem/include/JSystem/JKernel/JKRExpHeap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/JSystem/include/JSystem/JKernel/JKRExpHeap.h b/libs/JSystem/include/JSystem/JKernel/JKRExpHeap.h
index 1535ba757b..cf6bb819eb 100644
--- a/libs/JSystem/include/JSystem/JKernel/JKRExpHeap.h
+++ b/libs/JSystem/include/JSystem/JKernel/JKRExpHeap.h
@@ -35,7 +35,7 @@ public:
CMemBlock* getNextBlock() const { return mNext; }
u32 getSize() const { return size; }
u8 getGroupId() const { return mGroupId; }
- static CMemBlock* getBlock(void* data) { return (CMemBlock*)((uintptr_t)data + -0x10); }
+ static CMemBlock* getBlock(void* data) { return (CMemBlock*)((uintptr_t)data + -sizeof(CMemBlock)); }
private:
/* 0x0 */ u16 mMagic;