diff options
| author | Philippe Altherr <philippe.altherr@gmail.com> | 2026-09-23 19:37:03 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2026-10-10 00:19:30 +0200 |
| commit | 1054bb542384e2cb3ed57d04deab7c9bd7816d2a (patch) | |
| tree | 9d681aa1c9f8f34a63ec0f2b965ef117538d7938 | |
| parent | 55063: add nano's --newbuffer option (diff) | |
| download | zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar.gz zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar.bz2 zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar.lz zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar.xz zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.tar.zst zsh-1054bb542384e2cb3ed57d04deab7c9bd7816d2a.zip | |
55176: Avoid warning about imprecise int to float conversion
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Src/Modules/system.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2026-10-09 Oliver Kiddle <opk@zsh.org> + * Philippe Altherr: 55176: Src/Modules/system.c: Avoid warning + about imprecise int to float conversion + * Shohei YOSHIDA: 55063: Completion/Unix/Command/_nano: add --newbuffer option diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 57daf0d87..9ff2318c4 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -639,7 +639,7 @@ bin_zsystem_flock(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) } timeout_param.u.d = ceil(timeout_param.u.d * 1e6); if (timeout_param.u.d < 1 - || timeout_param.u.d > 0.999 * LONG_MAX) { + || timeout_param.u.d > -(0.999 * LONG_MIN)) { zwarnnam(nam, "flock: invalid interval value: '%s'", optarg); return 1; |
