Skip to content

Commit 0efe1e9

Browse files
fix: make compatible with runtime page size pr
1 parent 4400144 commit 0efe1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phantom/painting/fb/fd.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const FileDescriptorFrameBuffer = @This();
77
base: Base,
88
info: Base.Info,
99
fd: std.os.fd_t,
10-
buffer: []align(std.mem.page_size) u8,
10+
buffer: @typeInfo(@typeInfo(@TypeOf(std.os.mmap)).Fn.return_type.?).ErrorUnion.payload,
1111

1212
pub fn create(alloc: Allocator, info: Base.Info, fd: std.os.fd_t) !*Base {
1313
const self = try alloc.create(FileDescriptorFrameBuffer);

0 commit comments

Comments
 (0)