Skip to content

Commit

Permalink
Use derived context.
Browse files Browse the repository at this point in the history
  • Loading branch information
codygunton committed Aug 10, 2023
1 parent 6e0069b commit 8744b27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void bool_t<ComposerContext>::assert_equal(const bool_t& rhs, std::string const&
ComposerContext* ctx = lhs.get_context() ? lhs.get_context() : rhs.get_context();

if constexpr (IsSimulator<ComposerContext>) {
context->assert_equal(lhs.get_value(), rhs.get_value(), msg);
ctx->assert_equal(lhs.get_value(), rhs.get_value(), msg);
} else if (lhs.is_constant() && rhs.is_constant()) {
ASSERT(lhs.get_value() == rhs.get_value());
} else if (lhs.is_constant()) {
Expand Down

0 comments on commit 8744b27

Please sign in to comment.