mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
zlib: fix missing comptime attribute
This commit is contained in:
parent
c680b5d138
commit
a06a305f97
@ -23,7 +23,7 @@ pub fn BitReader32(comptime ReaderType: type) type {
|
||||
/// fill buffer from forward_reader by calling fill in advance and readF with
|
||||
/// buffered flag set.
|
||||
///
|
||||
pub fn BitReader(T: type, comptime ReaderType: type) type {
|
||||
pub fn BitReader(comptime T: type, comptime ReaderType: type) type {
|
||||
assert(T == u32 or T == u64);
|
||||
const t_bytes: usize = @sizeOf(T);
|
||||
const Tshift = if (T == u64) u6 else u5;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user