diff options
Diffstat (limited to 'src/kernel/NeKit/Utils.h')
| -rw-r--r-- | src/kernel/NeKit/Utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/NeKit/Utils.h b/src/kernel/NeKit/Utils.h index a42078de..618f968e 100644 --- a/src/kernel/NeKit/Utils.h +++ b/src/kernel/NeKit/Utils.h @@ -54,9 +54,9 @@ inline constexpr SizeT oe_string_len(const CharType* str) { if (!str) return 0; #if __cplusplus == 202302L - if - consteval { return ARRAY_SIZE(str); } - else { + if consteval { + return ARRAY_SIZE(str); + } else { SizeT len{0}; while (str[len] != 0) ++len; return len; |
