Skip to content

Commit

Permalink
undo cxxrtl damage
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Sep 30, 2024
1 parent ebdc704 commit 8ff3ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/cxxrtl/runtime/cxxrtl/cxxrtl.h
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ std::ostream &operator<<(std::ostream &os, const value<Bits> &val) {
auto old_flags = os.flags(std::ios::right);
auto old_width = os.width(0);
auto old_fill = os.fill('0');
os << val << '\'' << std::hex;
os << val.bits << '\'' << std::hex;
for (size_t n = val.chunks - 1; n != (size_t)-1; n--) {
if (n == val.chunks - 1 && Bits % value<Bits>::chunk::bits != 0)
os.width((Bits % value<Bits>::chunk::bits + 3) / 4);
Expand Down

0 comments on commit 8ff3ed8

Please sign in to comment.