From 0e8c2cdae672708a3ecc924f0fb2a3eb7befc203 Mon Sep 17 00:00:00 2001 From: yuanjay07 Date: Wed, 15 Jul 2026 23:11:33 +0800 Subject: [PATCH] fix: resolve silent bug in hash_combine ignoring final argument --- engine/source/runtime/core/base/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/source/runtime/core/base/hash.h b/engine/source/runtime/core/base/hash.h index 9ca6ffb71..2446bc772 100644 --- a/engine/source/runtime/core/base/hash.h +++ b/engine/source/runtime/core/base/hash.h @@ -13,7 +13,7 @@ template inline void hash_combine(std::size_t& seed, const T& v, Ts... rest) { hash_combine(seed, v); - if constexpr (sizeof...(Ts) > 1) + if constexpr (sizeof...(Ts) > 0) { hash_combine(seed, rest...); }