Change !0 to <type>::MAX or -1, depending on signedness

This commit is contained in:
Noel Tautges authored and Jim Blandy committed 2022-04-30 10:36:00 -07:00
1 parent 7b8d257043
commit a99fc27dc1
7 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -340,7 +340,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> {
println!("Validation successful");
return Ok(());
} else {
std::process::exit(!0);
std::process::exit(-1);
}
}