diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-05-02 01:35:34 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-05-02 01:35:34 +0800 |
| commit | 729cb9873accdf4ef59fddc8963b14ac3a6c342a (patch) | |
| tree | 6fb9b603bec1ebf4e02d205d266bcc240de084f1 /na | |
| parent | 5f8d745f39a57284cd9901364d7c7260816b7942 (diff) | |
| download | lume-729cb9873accdf4ef59fddc8963b14ac3a6c342a.tar.gz lume-729cb9873accdf4ef59fddc8963b14ac3a6c342a.tar.xz | |
fix: change constexpr to const for size_t offset calculation in list_entry
Diffstat (limited to 'na')
| -rw-r--r-- | na/include/lume/list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/na/include/lume/list.h b/na/include/lume/list.h index 35997ae..7c020a0 100644 --- a/na/include/lume/list.h +++ b/na/include/lume/list.h @@ -40,7 +40,7 @@ struct list_node { template <typename T, list_node T::*Member> static inline T *list_entry(list_node *node) { - constexpr size_t off = (size_t)(uintptr) & (((T *)nullptr)->*Member); + const size_t off = (size_t)(uintptr) & (((T *)nullptr)->*Member); return reinterpret_cast<T *>(reinterpret_cast<uintptr>(node) - off); } |
