From 65171be4d8682d05fb8f120f339e33db67285a38 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 6 Mar 2017 18:29:32 +0100 Subject: [PATCH] Fix ThreadContext definition Its correct size is 0xcc bytes, not the 8-byte aligned 0xd0 --- libctru/include/3ds/types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libctru/include/3ds/types.h b/libctru/include/3ds/types.h index 4134cb8..a2a8f96 100644 --- a/libctru/include/3ds/types.h +++ b/libctru/include/3ds/types.h @@ -70,9 +70,9 @@ typedef struct { /// Structure representing FPU registers typedef struct { - union{ - double d[16]; ///< d0-d15. - float f[32]; ///< f0-f31. + union { + struct PACKED { double d[16]; }; ///< d0-d15. + float f[32]; ///< f0-f31. }; u32 fpscr; ///< fpscr. u32 fpexc; ///< fpexc.