From 25cdfc991b4d3fb2b3cedb618e422e47f96f3eb0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 10 Nov 2024 15:24:26 +0100 Subject: [PATCH] port: 64-bit cleanup: don't use int128 to copy Gfx around --- include/PR/gbi.h | 2 +- src/game/tex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/PR/gbi.h b/include/PR/gbi.h index 84bbad552..d26d787f0 100644 --- a/include/PR/gbi.h +++ b/include/PR/gbi.h @@ -1645,7 +1645,7 @@ typedef union { #endif GunkC0 unkc0; #ifdef PLATFORM_64BIT - __int128 force_structure_alignment; + long long int force_structure_alignment[2]; #else long long int force_structure_alignment; #endif diff --git a/src/game/tex.c b/src/game/tex.c index f7d226b15..b46b9e8b0 100644 --- a/src/game/tex.c +++ b/src/game/tex.c @@ -1172,7 +1172,7 @@ void texCopyGdls(Gfx *src, Gfx *dst, s32 count) dst = dst + (count - 1); while (count--) { - dst->force_structure_alignment = src->force_structure_alignment; + *dst = *src; dst--; src--; }