forked from extern/nushell
Make the default int an i64 (#3428)
* Make the default int an i64 * fmt * Fix random integer * Treat pids as i64 for now
This commit is contained in:
@ -6,7 +6,11 @@ use nu_protocol::{PathMember, Primitive, UntaggedValue, Value};
|
||||
use nu_source::{Span, TaggedItem};
|
||||
use num_bigint::BigInt;
|
||||
|
||||
pub fn int(s: impl Into<BigInt>) -> Value {
|
||||
pub fn big_int(s: impl Into<BigInt>) -> Value {
|
||||
UntaggedValue::big_int(s).into_untagged_value()
|
||||
}
|
||||
|
||||
pub fn int(s: impl Into<i64>) -> Value {
|
||||
UntaggedValue::int(s).into_untagged_value()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user