From 9b5fb6987519e5179407107c7da904be745ef8d3 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 cf16d3e5..cb013d85 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],