We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034bb32 commit e7db05eCopy full SHA for e7db05e
ddcommon/src/unix_utils/fork.rs
@@ -64,9 +64,9 @@ pub fn alt_fork() -> libc::pid_t {
64
};
65
66
// The max value of a PID is configurable, but within an i32, so the failover
67
- if res > pid_t::MAX as i64 {
+ if (res as i64) > (pid_t::MAX as i64) {
68
pid_t::MAX
69
- } else if res < pid_t::MIN as i64 {
+ } else if (res as i64) < (pid_t::MIN as i64) {
70
pid_t::MIN
71
} else {
72
res as pid_t
0 commit comments