Standarized use of star in void and struct pointers

This commit is contained in:
Eduardo Quezada
2022-07-29 11:20:00 -04:00
parent 4998b976e1
commit 4c9e831a05
29 changed files with 138 additions and 138 deletions
+1 -1
View File
@@ -106,7 +106,7 @@
#define T2_READ_8(ptr) ((ptr)[0])
#define T2_READ_16(ptr) ((ptr)[0] + ((ptr)[1] << 8))
#define T2_READ_32(ptr) ((ptr)[0] + ((ptr)[1] << 8) + ((ptr)[2] << 16) + ((ptr)[3] << 24))
#define T2_READ_PTR(ptr) (void*) T2_READ_32(ptr)
#define T2_READ_PTR(ptr) (void *) T2_READ_32(ptr)
// This macro is required to prevent the compiler from optimizing
// a dpad up/down check in sub_812CAD8 (fame_checker.c).