File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ pub fn WIFEXITED(s: u32) bool {
348
348
return WTERMSIG (s ) == 0 ;
349
349
}
350
350
pub fn WIFSTOPPED (s : u32 ) bool {
351
- return @intCast (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
351
+ return @truncate (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
352
352
}
353
353
pub fn WIFSIGNALED (s : u32 ) bool {
354
354
return (s & 0xffff ) -% 1 < 0xff ;
Original file line number Diff line number Diff line change @@ -741,7 +741,7 @@ pub fn WIFEXITED(s: u32) bool {
741
741
return WTERMSIG (s ) == 0 ;
742
742
}
743
743
pub fn WIFSTOPPED (s : u32 ) bool {
744
- return @intCast (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
744
+ return @truncate (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
745
745
}
746
746
pub fn WIFSIGNALED (s : u32 ) bool {
747
747
return (s & 0xffff ) -% 1 < 0xff ;
Original file line number Diff line number Diff line change @@ -1066,7 +1066,7 @@ pub fn WIFEXITED(s: u32) bool {
1066
1066
return WTERMSIG (s ) == 0 ;
1067
1067
}
1068
1068
pub fn WIFSTOPPED (s : u32 ) bool {
1069
- return @intCast (u16 , ((s & 0xffff ) *% 0x10001 ) >> 8 ) > 0x7f00 ;
1069
+ return @truncate (u16 , ((s & 0xffff ) *% 0x10001 ) >> 8 ) > 0x7f00 ;
1070
1070
}
1071
1071
pub fn WIFSIGNALED (s : u32 ) bool {
1072
1072
return (s & 0xffff ) -% 1 < 0xff ;
You can’t perform that action at this time.
0 commit comments