new_bigint for &BigInt

This commit is contained in:
Jeong YunWon committed 2020-08-06 20:19:13 +09:00
1 parent 3f6ebd3385
commit 6edc82c192
1 file changed
+1 -1
+1 -1
View File
@@ -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))