From a6bd8ff3e52960eeaa7e10e52e4abe7f75862088 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 19 Dec 2024 11:47:34 +0100 Subject: [PATCH] yw: fix unintensional recursion in hash_into --- kernel/yw.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/yw.h b/kernel/yw.h index 34546d1e246..3c3b4fd4058 100644 --- a/kernel/yw.h +++ b/kernel/yw.h @@ -35,7 +35,10 @@ struct IdPath : public std::vector bool has_address() const { int tmp; return get_address(tmp); }; bool get_address(int &addr) const; - Hasher hash_into(Hasher h) const { h.eat(*this); return h; } + Hasher hash_into(Hasher h) const { + h.eat(static_cast&&>(*this)); + return h; + } }; struct WitnessHierarchyItem {