diff --git a/nac3core/src/codegen/stmt.rs b/nac3core/src/codegen/stmt.rs index cf16d3e5c..cb013d852 100644 --- a/nac3core/src/codegen/stmt.rs +++ b/nac3core/src/codegen/stmt.rs @@ -1637,7 +1637,7 @@ pub fn gen_stmt( }; ctx.make_assert_impl( generator, - test.into_int_value(), + generator.bool_to_i1(ctx, test.into_int_value()), "0:AssertionError", err_msg, [None, None, None],