From 6231c0bdf5db6b960f764defd03b03a19a79a147 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 2 Dec 2017 08:45:04 +0000 Subject: [PATCH] Change ARRAY_SSIZE macro to return type native_t git-svn-id: https://svn.eduke32.com/eduke32@6535 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index dba32eb68..081685490 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -827,7 +827,7 @@ struct bad_arg_to_ARRAY_SIZE #else # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #endif -#define ARRAY_SSIZE(arr) (signed)ARRAY_SIZE(arr) +#define ARRAY_SSIZE(arr) (native_t)ARRAY_SIZE(arr) ////////// Memory management //////////