Skip to content

Commit e7db05e

Browse files
fix(ddcommon): fix build on i686 (#1144)
1 parent 034bb32 commit e7db05e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddcommon/src/unix_utils/fork.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ pub fn alt_fork() -> libc::pid_t {
6464
};
6565

6666
// The max value of a PID is configurable, but within an i32, so the failover
67-
if res > pid_t::MAX as i64 {
67+
if (res as i64) > (pid_t::MAX as i64) {
6868
pid_t::MAX
69-
} else if res < pid_t::MIN as i64 {
69+
} else if (res as i64) < (pid_t::MIN as i64) {
7070
pid_t::MIN
7171
} else {
7272
res as pid_t

0 commit comments

Comments
 (0)