From 915460ecb7fcda6f6047943bff12348c115cb0df Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 3 Oct 2021 16:18:15 +0800 Subject: [PATCH] nac3artiq: fix typo --- nac3artiq/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 6d969bba..0af1bfcd 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -200,7 +200,7 @@ fn timeline_builtins(primitive: &PrimitiveStore) -> Vec<(StrRef, FunSignature, A }, Arc::new(GenCall::new(Box::new( |ctx, _, _, args| { - let i32_type = ctx.ctx.i64_type(); + let i32_type = ctx.ctx.i32_type(); let i64_type = ctx.ctx.i64_type(); let i64_32 = i64_type.const_int(32, false).into(); if let BasicValueEnum::IntValue(time) = args[0].1 { @@ -234,7 +234,7 @@ fn timeline_builtins(primitive: &PrimitiveStore) -> Vec<(StrRef, FunSignature, A }, Arc::new(GenCall::new(Box::new( |ctx, _, _, args| { - let i32_type = ctx.ctx.i64_type(); + let i32_type = ctx.ctx.i32_type(); let i64_type = ctx.ctx.i64_type(); let i64_32 = i64_type.const_int(32, false).into(); let now = ctx.module.get_global("now").unwrap_or_else(|| ctx.module.add_global(i64_type, None, "now"));