Skip to content

Commit

Permalink
Returning unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Dargelas committed Nov 7, 2024
1 parent 3ad51e0 commit 43186b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kernel/rtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>::hash(rtlil_dump()));
unsigned int RTLIL::Module::rtlil_hash() {
return hash_ops<std::string>::hash(rtlil_dump());
}

void RTLIL::Module::swap_names(RTLIL::Cell *c1, RTLIL::Cell *c2)
Expand Down
2 changes: 1 addition & 1 deletion kernel/rtlil.h
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ struct RTLIL::Module : public RTLIL::AttrObject
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<unsigned int, RTLIL::Module*> *get_all_modules(void);
Expand Down

0 comments on commit 43186b2

Please sign in to comment.