From 2fe14a7a5af978a1525f27859f5cba1a056063b1 Mon Sep 17 00:00:00 2001 From: nibon7 Date: Thu, 14 Apr 2022 21:52:32 +0800 Subject: [PATCH] fix timestamp parsing on 32-bit platforms (#5192) Fixes #5191 --- crates/nu-command/src/filesystem/touch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/filesystem/touch.rs b/crates/nu-command/src/filesystem/touch.rs index bb10fd2be..8f3e75559 100644 --- a/crates/nu-command/src/filesystem/touch.rs +++ b/crates/nu-command/src/filesystem/touch.rs @@ -124,7 +124,7 @@ impl Command for Touch { let size = val.len(); // Each stamp is a 2 digit number and the whole stamp must not be less than 4 or greater than 7 pairs - if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::().is_err() { + if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::().is_err() { return Err(ShellError::UnsupportedInput( "input has an invalid timestamp".to_string(), span,