summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--query.zig2
-rw-r--r--sqlite.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/query.zig b/query.zig
index 9cb624b..0f3bcd3 100644
--- a/query.zig
+++ b/query.zig
@@ -149,7 +149,7 @@ pub fn ParsedQuery(comptime query: []const u8) ParsedQueryState(query.len) {
149 .query_len = pos, 149 .query_len = pos,
150 }; 150 };
151 151
152 std.mem.copy(u8, &parsed_state.query, &buf); 152 std.mem.copyForwards(u8, &parsed_state.query, &buf);
153 153
154 return parsed_state; 154 return parsed_state;
155} 155}
diff --git a/sqlite.zig b/sqlite.zig
index 8477151..9a59135 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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)),