diff options
| author | 2023-12-02 22:03:21 +0100 | |
|---|---|---|
| committer | 2023-12-02 22:03:21 +0100 | |
| commit | d697c0d034a965910ec02bffa6b53f332451d756 (patch) | |
| tree | c8f69c09f5892a0059dcf15e9a661db888464cd7 /sqlite.zig | |
| parent | fix build on non x86_64 architectures (diff) | |
| parent | Update sqlite.zig (diff) | |
| download | zig-sqlite-d697c0d034a965910ec02bffa6b53f332451d756.tar.gz zig-sqlite-d697c0d034a965910ec02bffa6b53f332451d756.tar.xz zig-sqlite-d697c0d034a965910ec02bffa6b53f332451d756.zip | |
Merge pull request #146 from Krvopije/master
Fix for deprecated std.mem.copy
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1240,7 +1240,7 @@ pub fn Iterator(comptime Type: type) type { | |||
| 1240 | if (data != null) { | 1240 | if (data != null) { |
| 1241 | const ptr = @as([*c]const u8, @ptrCast(data))[0..size]; | 1241 | const ptr = @as([*c]const u8, @ptrCast(data))[0..size]; |
| 1242 | 1242 | ||
| 1243 | mem.copy(u8, ret[0..], ptr); | 1243 | mem.copyForwards(u8, ret[0..], ptr); |
| 1244 | } | 1244 | } |
| 1245 | }, | 1245 | }, |
| 1246 | else => @compileError("cannot read into array of " ++ @typeName(arr.child)), | 1246 | else => @compileError("cannot read into array of " ++ @typeName(arr.child)), |