forked from M-Labs/nac3
1
0
Fork 0

nac3artiq: resolve unsigned int host variable as defautl param

This commit is contained in:
ychenfo 2022-03-30 03:17:06 +08:00
parent 6ab73a223c
commit e52d7fc97a
1 changed files with 6 additions and 0 deletions

View File

@ -931,6 +931,12 @@ impl InnerResolver {
} else if ty_id == self.primitive_ids.int64 { } else if ty_id == self.primitive_ids.int64 {
let val: i64 = obj.extract()?; let val: i64 = obj.extract()?;
Ok(SymbolValue::I64(val)) 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 { } else if ty_id == self.primitive_ids.bool {
let val: bool = obj.extract()?; let val: bool = obj.extract()?;
Ok(SymbolValue::Bool(val)) Ok(SymbolValue::Bool(val))