From 6edc82c1927c1f60c63da99bd7c43749f6639e7a Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 6 Aug 2020 20:19:13 +0900 Subject: [PATCH] new_bigint for &BigInt --- vm/src/stdlib/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/ast.rs b/vm/src/stdlib/ast.rs index e28f1e48f..c2a76bf5b 100644 --- a/vm/src/stdlib/ast.rs +++ b/vm/src/stdlib/ast.rs @@ -407,7 +407,7 @@ fn expression_to_ast(vm: &VirtualMachine, expression: &ast::Expression) -> PyRes }), Number { value } => { let py_n = match value { - ast::Number::Integer { value } => vm.ctx.new_int(value.clone()), + ast::Number::Integer { value } => vm.ctx.new_bigint(value), ast::Number::Float { value } => vm.ctx.new_float(*value), ast::Number::Complex { real, imag } => { vm.ctx.new_complex(Complex64::new(*real, *imag))