From 51c2175c80ee5a11dd3e33ddf7fc377d2d105222 Mon Sep 17 00:00:00 2001 From: David Mak Date: Fri, 12 Jul 2024 14:07:02 +0800 Subject: [PATCH] core/codegen/stmt: Convert assertion values to i1 --- nac3core/src/codegen/stmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],