From e52d7fc97af68c103577f0a1da2c481b4aa21359 Mon Sep 17 00:00:00 2001 From: ychenfo Date: Wed, 30 Mar 2022 03:17:06 +0800 Subject: [PATCH] nac3artiq: resolve unsigned int host variable as defautl param --- nac3artiq/src/symbol_resolver.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nac3artiq/src/symbol_resolver.rs b/nac3artiq/src/symbol_resolver.rs index 51635fb9..b77957a6 100644 --- a/nac3artiq/src/symbol_resolver.rs +++ b/nac3artiq/src/symbol_resolver.rs @@ -931,6 +931,12 @@ impl InnerResolver { } else if ty_id == self.primitive_ids.int64 { let val: i64 = obj.extract()?; Ok(SymbolValue::I64(val)) + } else if ty_id == self.primitive_ids.uint32 { + let val: u32 = obj.extract()?; + Ok(SymbolValue::U32(val)) + } else if ty_id == self.primitive_ids.uint64 { + let val: u64 = obj.extract()?; + Ok(SymbolValue::U64(val)) } else if ty_id == self.primitive_ids.bool { let val: bool = obj.extract()?; Ok(SymbolValue::Bool(val))