Make example work for sub/rsub. Still work in progress.

This commit is contained in:
Windel Bouwman
2018-11-06 22:13:49 +01:00
parent 60f29149ef
commit bacaef0ec5
2 changed files with 44 additions and 21 deletions

View File

@@ -226,7 +226,7 @@ fn int_sub(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
.ctx
.new_float(i.to_f64().unwrap() - objfloat::get_value(i2)))
} else {
Err(vm.new_type_error(format!("Cannot substract {:?} and {:?}", i, i2)))
Err(vm.new_not_implemented_error(format!("Cannot substract {:?} and {:?}", i, i2)))
}
}