Change ARRAY_SSIZE macro to return type native_t

git-svn-id: https://svn.eduke32.com/eduke32@6535 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-12-02 08:45:04 +00:00
parent a18d03635c
commit 6231c0bdf5

View file

@ -827,7 +827,7 @@ struct bad_arg_to_ARRAY_SIZE
#else #else
# define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif #endif
#define ARRAY_SSIZE(arr) (signed)ARRAY_SIZE(arr) #define ARRAY_SSIZE(arr) (native_t)ARRAY_SIZE(arr)
////////// Memory management ////////// ////////// Memory management //////////