From 43186b2c7af26ab07e017243f596571516d89bc1 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Wed, 6 Nov 2024 16:39:58 -0800 Subject: [PATCH] Returning unsigned int --- kernel/rtlil.cc | 4 ++-- kernel/rtlil.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index bfb177e9b..2650042ff 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -2520,8 +2520,8 @@ std::string RTLIL::Module::rtlil_dump() { } // Returns a hash of the RTLIL dump -std::string RTLIL::Module::rtlil_hash() { - return std::to_string(hash_ops::hash(rtlil_dump())); +unsigned int RTLIL::Module::rtlil_hash() { + return hash_ops::hash(rtlil_dump()); } void RTLIL::Module::swap_names(RTLIL::Cell *c1, RTLIL::Cell *c2) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index bd9d31879..350a6afe3 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1592,7 +1592,7 @@ public: RTLIL::SigSpec FutureFF (RTLIL::IdString name, const RTLIL::SigSpec &sig_e, const std::string &src = ""); std::string rtlil_dump(); - std::string rtlil_hash(); + unsigned int rtlil_hash(); #ifdef WITH_PYTHON static std::map *get_all_modules(void);