mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
new_bigint for &BigInt
This commit is contained in:
1 parent
3f6ebd3385
commit
6edc82c192
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user