From 42973d73e6b045f242cc67015fba023ff46e9929 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 27 Apr 2023 15:40:00 -0700 Subject: compiler: use `@memcpy` instead of `std.mem.copy` --- src/Autodoc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Autodoc.zig') diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 91e252a3f8..467ff55994 100644 --- a/src/Autodoc.zig +++ b/src/Autodoc.zig @@ -1146,7 +1146,7 @@ fn walkInstruction( const limb_bytes = file.zir.string_bytes[str.start..][0..byte_count]; var limbs = try self.arena.alloc(std.math.big.Limb, str.len); - std.mem.copy(u8, std.mem.sliceAsBytes(limbs), limb_bytes); + @memcpy(std.mem.sliceAsBytes(limbs)[0..limb_bytes.len], limb_bytes); const big_int = std.math.big.int.Const{ .limbs = limbs, -- cgit v1.2.3