From c77548c95ca71cb95a86e6352cd1a09bba3f9b1d Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Tue, 27 Jul 2021 16:43:51 +0200 Subject: [PATCH] fix: accidental truncation of `name::hash` --- src/util/name.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/name.h b/src/util/name.h index 57b020dded..8e8ce54e69 100644 --- a/src/util/name.h +++ b/src/util/name.h @@ -98,7 +98,7 @@ public: name & operator=(name const & other) { object_ref::operator=(other); return *this; } name & operator=(name && other) { object_ref::operator=(other); return *this; } static uint64_t hash(b_obj_arg n); - unsigned hash() const { return hash(raw()); } + uint64_t hash() const { return hash(raw()); } /** \brief Return true iff \c n1 is a prefix of \c n2. */ friend bool is_prefix_of(name const & n1, name const & n2); friend bool operator==(name const & a, name const & b) { return name::eq(a.raw(), b.raw()); }