Skip to content

Commit

Permalink
fixup! rtlil: implement Const with std::variant with std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Aug 26, 2024
1 parent 529a802 commit dad4b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/rtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ int RTLIL::Const::as_int(bool is_signed) const
return ret;
}

std::string RTLIL::Const::as_string(std::string any) const
std::string RTLIL::Const::as_string(const char* any) const
{
bitvectorize();
bitvectype& bv = get_bits();
Expand Down
2 changes: 1 addition & 1 deletion kernel/rtlil.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ struct RTLIL::Const
std::vector<RTLIL::State>& bits();
bool as_bool() const;
int as_int(bool is_signed = false) const;
std::string as_string(std::string any = "-") const;
std::string as_string(const char* any = "-") const;
static Const from_string(const std::string &str);
std::vector<RTLIL::State> to_bits() const;

Expand Down

0 comments on commit dad4b1b

Please sign in to comment.