diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-27 15:40:00 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-28 13:24:43 -0700 |
| commit | 42973d73e6b045f242cc67015fba023ff46e9929 (patch) | |
| tree | 6b8e24acc670e86a6fc97ab5012ba02e348e6824 /src/type.zig | |
| parent | 125221cce9e985e9062f7b599431f3ff50ed79eb (diff) | |
| download | zig-42973d73e6b045f242cc67015fba023ff46e9929.tar.gz zig-42973d73e6b045f242cc67015fba023ff46e9929.zip | |
compiler: use `@memcpy` instead of `std.mem.copy`
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig index c7b2844970..816a1ee2e0 100644 --- a/src/type.zig +++ b/src/type.zig @@ -4767,7 +4767,7 @@ pub const Type = extern union { .fn_ccc_void_no_args => return, .function => { const payload = self.castTag(.function).?.data; - std.mem.copy(Type, types, payload.param_types); + @memcpy(types[0..payload.param_types.len], payload.param_types); }, else => unreachable, |
