summaryrefslogtreecommitdiffstats
path: root/Src/Modules
diff options
context:
space:
mode:
authorPhilippe Altherr <philippe.altherr@gmail.com>2026-09-23 19:37:03 +0200
committerOliver Kiddle <opk@zsh.org>2026-10-10 00:19:30 +0200
commit1054bb542384e2cb3ed57d04deab7c9bd7816d2a (patch)
tree9d681aa1c9f8f34a63ec0f2b965ef117538d7938 /Src/Modules
parent55063: add nano's --newbuffer option (diff)
downloadzsh-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
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/system.c2
1 files changed, 1 insertions, 1 deletions
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;