a
This commit is contained in:
parent
2c54025d00
commit
bc3fb597d5
7 changed files with 72 additions and 73 deletions
|
@ -1,4 +1,3 @@
|
|||
[workspace]
|
||||
members = ["talc-lang", "talc-bin", "talc-std", "talc-macros"]
|
||||
resolver = "2"
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ pub fn time_fn(vm: &mut Vm, args: Vec<Value>) -> Result<Value> {
|
|||
vmcall!(vm; func)?;
|
||||
let tf = SystemTime::now();
|
||||
let time = tf.duration_since(t0).expect("time went backwards");
|
||||
Ok((time.as_secs_f64() as i64).into())
|
||||
Ok(time.as_secs_f64().into())
|
||||
}
|
||||
|
||||
pub fn load(vm: &mut Vm) {
|
||||
|
|
|
@ -533,7 +533,7 @@ pub fn cartprod(_: &mut Vm, args: Vec<Value>) -> Result<Value> {
|
|||
|
||||
state.borrow_mut().b_idx += 1;
|
||||
|
||||
Ok(Value::from(vec![a_res, b_res]).to_cell())
|
||||
Ok(Value::from(vec![a_res, b_res]))
|
||||
};
|
||||
|
||||
Ok(NativeFunc::new(Box::new(f), 0).into())
|
||||
|
|
Loading…
Reference in a new issue