aboutsummaryrefslogtreecommitdiff
path: root/src/copy_file.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-15 19:44:53 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-15 19:44:53 -0700
commit10696680ff9012f7ca07ae2c1de5ed710647b4f9 (patch)
tree1732ddd3dd2a7605da8ff5f181156e9e734aaa99 /src/copy_file.zig
parent7e159cb5cdfc288c1aab7b0f810f5b54438b9f19 (diff)
downloadbun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.tar.gz
bun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.tar.zst
bun-10696680ff9012f7ca07ae2c1de5ed710647b4f9.zip
Polish
Diffstat (limited to 'src/copy_file.zig')
-rw-r--r--src/copy_file.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy_file.zig b/src/copy_file.zig
index 57738363f..f60638f9f 100644
--- a/src/copy_file.zig
+++ b/src/copy_file.zig
@@ -21,7 +21,7 @@ pub fn copy(fd_in: os.fd_t, fd_out: os.fd_t) CopyFileError!void {
}
}
- if (std.Target.current.os.tag == .linux) {
+ if (comptime std.Target.current.os.tag == .linux) {
// Try copy_file_range first as that works at the FS level and is the
// most efficient method (if available).
var offset: u64 = 0;