From 0b89c4903cf54167a9b1391f6657dbcd056d0c16 Mon Sep 17 00:00:00 2001 From: Georgijs Vilums Date: Fri, 2 Feb 2024 14:16:58 -0800 Subject: [PATCH] fix mac build --- src/bun.js/node/node_fs.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bun.js/node/node_fs.zig b/src/bun.js/node/node_fs.zig index b74d4f383b82f2..12261b2f5d4fb8 100644 --- a/src/bun.js/node/node_fs.zig +++ b/src/bun.js/node/node_fs.zig @@ -6598,9 +6598,9 @@ pub const NodeFS = struct { args, task, src_buf, - src_dir_len + 1 + cname.len, + @truncate(src_dir_len + 1 + cname.len), dest_buf, - dest_dir_len + 1 + cname.len, + @truncate(dest_dir_len + 1 + cname.len), ); if (!should_continue) return false; },