From 724f23c19f505a4ec18f96a047493fc5851a34b2 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 27 Jan 2023 03:54:30 -0800 Subject: Update watcher.zig --- src/watcher.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/watcher.zig b/src/watcher.zig index 954bd0aa3..5b3fa5778 100644 --- a/src/watcher.zig +++ b/src/watcher.zig @@ -108,13 +108,13 @@ pub const INotify = struct { std.os.inotify_rm_watch(inotify_fd, wd); } - var coalesce_interval: usize = 100_000; + var coalesce_interval: isize = 100_000; pub fn init() !void { std.debug.assert(!loaded_inotify); loaded_inotify = true; if (std.os.getenvZ("BUN_INOTIFY_COALESCE_INTERVAL")) |env| { - coalesce_interval = std.fmt.parseInt(usize, env, 10) catch 100_000; + coalesce_interval = std.fmt.parseInt(isize, env, 10) catch 100_000; } inotify_fd = try std.os.inotify_init1(IN_CLOEXEC); -- cgit v1.2.3