summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorYanis002 <35189056+Yanis002@users.noreply.github.com>2025-01-23 14:51:54 +0100
committerYanis002 <35189056+Yanis002@users.noreply.github.com>2025-01-23 14:51:54 +0100
commitc2c40b8221e2ea1ce3cd8e6257209dad892ad7e5 (patch)
treed2813107256b5d50889e8b68d0401fa253d6e8c4 /include/global.h
parent969a5a7c51b6f24d13c85b5565d8c3c0aadcf7d7 (diff)
match func_020370d0 to func_02037178
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h
index 617f672f..8d6635dd 100644
--- a/include/global.h
+++ b/include/global.h
@@ -7,7 +7,8 @@
#define SET_FLAG(arr, pos) ((arr)[((u32) (pos)) >> 5] |= 1 << ((pos) & 0x1f))
#define RESET_FLAG(arr, pos) ((arr)[((u32) (pos)) >> 5] &= ~(1 << ((pos) & 0x1f)))
-#define ARRAY_LEN(arr) ((sizeof(arr) / sizeof(*arr)))
+#define ARRAY_LEN_U(arr) (u32)((sizeof(arr) / sizeof(*arr)))
+#define ARRAY_LEN(arr) (s32)(sizeof(arr) / sizeof(*arr))
// Prevent the IDE from reporting errors that the compiler/linker won't report
#ifdef __INTELLISENSE__