mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.io.BufferedReader: don't use @memmove yet
so I can use the x86 backend
This commit is contained in:
parent
f32fc8a848
commit
01973a8a16
@ -730,7 +730,7 @@ pub fn fill(br: *BufferedReader, n: usize) Reader.Error!void {
|
||||
}
|
||||
if (seek > 0) {
|
||||
const remainder = buffer[seek..];
|
||||
@memmove(buffer[0..remainder.len], remainder);
|
||||
std.mem.copyForwards(u8, buffer[0..remainder.len], remainder);
|
||||
br.end = remainder.len;
|
||||
br.seek = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user