From 729cb9873accdf4ef59fddc8963b14ac3a6c342a Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 2 May 2026 01:35:34 +0800 Subject: fix: change constexpr to const for size_t offset calculation in list_entry --- na/include/lume/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'na') 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 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(reinterpret_cast(node) - off); } -- cgit v1.2.3