summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/InitializerList.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/NeKit/InitializerList.h')
-rw-r--r--src/kernel/NeKit/InitializerList.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/NeKit/InitializerList.h b/src/kernel/NeKit/InitializerList.h
index 48f9ea53..8e00e95d 100644
--- a/src/kernel/NeKit/InitializerList.h
+++ b/src/kernel/NeKit/InitializerList.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel
@@ -17,7 +17,7 @@ class InitializerList final {
explicit InitializerList(const Type* list) {
if constexpr (N > 0) {
- for (auto i = 0UL; i < N; ++i) {
+ for (auto i{0ull}; i < N; ++i) {
fList[i] = list[i];
}
}
@@ -34,6 +34,7 @@ class InitializerList final {
constexpr SizeT size() const { return N; }
Type* operator->() { return this->begin(); }
+
Type* operator*() { return this->begin(); }
private: