Change sizeof division to std::size

This commit is contained in:
Ben Grant
2024-10-16 14:00:57 -07:00
parent 216e5b3f96
commit 2fee09fc4d

View File

@@ -204,7 +204,7 @@ napi_get_last_error_info(napi_env env, const napi_extended_error_info** result)
"Main thread would deadlock",
};
static_assert(sizeof(error_messages) / sizeof(const char*) == last_status + 1,
static_assert(std::size(error_messages) == last_status + 1,
"error_messages array does not cover all status codes");
auto globalObject = toJS(env);