diff --git a/src/RageUtil/Utils/RageUtil.h b/src/RageUtil/Utils/RageUtil.h index 523a36fb20..5177ecd4b6 100644 --- a/src/RageUtil/Utils/RageUtil.h +++ b/src/RageUtil/Utils/RageUtil.h @@ -29,7 +29,7 @@ class RageFileDriver; #define ZERO(x) memset(&(x), 0, sizeof(x)) /** @brief Get the length of the array. */ -#define ARRAYLEN(a) (sizeof(a) / sizeof((a)[0])) +#define ARRAYLEN(a) std::size(a) /** * @brief Scales x so that l1 corresponds to l2 and h1 corresponds to h2.