Repository navigation
Commit 6456aa7
committed
Fix -Woverflow warning for POSIX_RLIMIT_INFINITY on 32-bit
With a 64-bit rlim_t, RLIM_INFINITY does not fit into a 32-bit zend_long
and the implicit conversion warns, which breaks --enable-werror builds.
Register -1 in that case, which posix_setrlimit() maps back to
RLIM_INFINITY. This is the value the truncation produced already, so the
constant does not change on any platform.1 parent 688d0fe commit 6456aa7
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments