Skip to content

Commit 13ef8a2

Browse files
committed
Fix builds for Zig master
Fixes builds using Zig master after ziglang/zig#22505 was merged by using the updated field names in `std.builtin.Type`.
1 parent f6c4f46 commit 13ef8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formats/png/reader.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ pub const ReaderProcessor = struct {
640640
const ptr_info = @typeInfo(Ptr);
641641

642642
std.debug.assert(ptr_info == .pointer); // Must be a pointer
643-
std.debug.assert(ptr_info.pointer.size == .One); // Must be a single-item pointer
643+
std.debug.assert(ptr_info.pointer.size == .one); // Must be a single-item pointer
644644

645645
const gen = struct {
646646
fn chunkProcessor(ptr: *anyopaque, data: *ChunkProcessData) ImageUnmanaged.ReadError!PixelFormat {

0 commit comments

Comments
 (0)