std.io.BufferedReader: get rid of the @constCast

but it's pushed out to various callsites
This commit is contained in:
Andrew Kelley
2025-04-18 18:23:06 -07:00
parent f333267782
commit 00afaa4b18
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -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;