This is the first time I've submitted a patch to a project so I hope I did it properly. This patch is for /tools/gba/gbatools/gbafix.c. Alternately the source could be compiled with the -m32 flag.
Code: Select all
53a54,59
> #ifdef __LP64__
> typedef unsigned int ul;
> #else
> typedef unsigned long ul;
> #endif
>
56c62
< unsigned long start_code; // B instruction
---
> ul start_code; // B instruction
59c65
< unsigned long game_code; //
---
> ul game_code; //
70d75
<