mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
commit
1f37abcc9c
1 changed files with 1 additions and 3 deletions
|
@ -10,12 +10,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate num;
|
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::os::{args_as_bytes};
|
use std::os::{args_as_bytes};
|
||||||
use std::str::{from_utf8};
|
use std::str::{from_utf8};
|
||||||
use num::bigint::{BigInt};
|
|
||||||
|
|
||||||
static NAME: &'static str = "test";
|
static NAME: &'static str = "test";
|
||||||
|
|
||||||
|
@ -126,7 +124,7 @@ fn integers(a: &[u8], b: &[u8], cond: IntegerCondition) -> bool {
|
||||||
(Some(a), Some(b)) => (a, b),
|
(Some(a), Some(b)) => (a, b),
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
let (a, b): (BigInt, BigInt) = match (from_str(a), from_str(b)) {
|
let (a, b): (i64, i64) = match (from_str(a), from_str(b)) {
|
||||||
(Some(a), Some(b)) => (a, b),
|
(Some(a), Some(b)) => (a, b),
|
||||||
_ => return false,
|
_ => return false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue