mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +01:00
Fix nonzeros not being bit-opable (windows)
This commit is contained in:
parent
963cd68cc4
commit
5c012c5b0c
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ impl From<ExitStatus> for ProcessEnd {
|
|||
fn from(es: ExitStatus) -> Self {
|
||||
match es.code().map(NonZeroI32::try_from) {
|
||||
None | Some(Err(_)) => Self::Success,
|
||||
Some(Ok(code)) if code & 0x80000000 != 0 => Self::Exception(code),
|
||||
Some(Ok(code)) if code.get() & 0x80000000 != 0 => Self::Exception(code),
|
||||
Some(Ok(code)) => Self::ExitError(code.into()),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue