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 @@ -345,7 +345,7 @@ pub fn WIFEXITED(s: u32) bool {
345345 return WTERMSIG (s ) == 0 ;
346346}
347347pub fn WIFSTOPPED (s : u32 ) bool {
348- return @intCast (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
348+ return @truncate (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
349349}
350350pub fn WIFSIGNALED (s : u32 ) bool {
351351 return (s & 0xffff ) -% 1 < 0xff ;
Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ pub fn WIFEXITED(s: u32) bool {
742742 return WTERMSIG (s ) == 0 ;
743743}
744744pub fn WIFSTOPPED (s : u32 ) bool {
745- return @intCast (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
745+ return @truncate (u16 , (((s & 0xffff ) *% 0x10001 ) >> 8 )) > 0x7f00 ;
746746}
747747pub fn WIFSIGNALED (s : u32 ) bool {
748748 return (s & 0xffff ) -% 1 < 0xff ;
Original file line number Diff line number Diff line change @@ -1061,7 +1061,7 @@ pub fn WIFEXITED(s: u32) bool {
10611061 return WTERMSIG (s ) == 0 ;
10621062}
10631063pub fn WIFSTOPPED (s : u32 ) bool {
1064- return @intCast (u16 , ((s & 0xffff ) *% 0x10001 ) >> 8 ) > 0x7f00 ;
1064+ return @truncate (u16 , ((s & 0xffff ) *% 0x10001 ) >> 8 ) > 0x7f00 ;
10651065}
10661066pub fn WIFSIGNALED (s : u32 ) bool {
10671067 return (s & 0xffff ) -% 1 < 0xff ;
You can’t perform that action at this time.
0 commit comments