diff --git a/src/header/locale/data.rs b/src/header/locale/data.rs index 92513600af..db81a0ea6e 100644 --- a/src/header/locale/data.rs +++ b/src/header/locale/data.rs @@ -362,6 +362,8 @@ impl PosixLocaleDef { /// parse e.g. `-1` -> None, `1` -> Some(1) fn parse_int(val: &str) -> Option { let r = val.trim().parse::().ok(); + // c_char is u8 on aarch64 and riscv64 so comparison is useless + #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))] if r.is_some_and(|i| i < 0) { return None; }