mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-30 12:56:37 +03:00
std.io.BufferedReader: get rid of the @constCast
but it's pushed out to various callsites
This commit is contained in:
@@ -53,7 +53,7 @@ pub fn readIntChecked(
|
||||
|
||||
pub fn readLeb128(fbr: *FixedBufferReader, comptime T: type) Error!T {
|
||||
var br: std.io.BufferedReader = undefined;
|
||||
br.initFixed(fbr.buf);
|
||||
br.initFixed(@constCast(fbr.buf));
|
||||
br.seek = fbr.pos;
|
||||
const result = br.takeLeb128(T);
|
||||
fbr.pos = br.seek;
|
||||
|
||||
Reference in New Issue
Block a user