diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2025-03-11 16:20:35 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2025-03-11 16:20:35 +0900 |
commit | 7580c25a081e39732afaaa7a630d7f58005d5ab1 (patch) | |
tree | ecfb353f669af3d5df23bc099e514a7460ca4b73 /src/zeal.zig | |
parent | eb65c5633e1bfae26ae95c6183cc74c2b5937943 (diff) | |
download | zeal-0.1.0.tar.gz |
Port to Zig 0.14 0.1.0
Diffstat (limited to 'src/zeal.zig')
-rw-r--r-- | src/zeal.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zeal.zig b/src/zeal.zig index cf88b11..2f4db85 100644 --- a/src/zeal.zig +++ b/src/zeal.zig @@ -1,5 +1,5 @@ // Zig easy audio library -// Copyright (C) 2021-2023 Nguyễn Gia Phong +// Copyright (C) 2021-2023, 2025 Nguyễn Gia Phong // // This file is part of zeal. // @@ -86,7 +86,7 @@ pub const Context = struct { }; pub fn init(device: Device, attributes: Attributes) alc.Error!Context { - const fields = @typeInfo(Attributes).Struct.fields; + const fields = @typeInfo(Attributes).@"struct".fields; var attr_list = [_]i32{ 0 } ** (fields.len * 2 + 1); var i: u8 = 0; inline for (fields) |f| if (@field(attributes, f.name)) |v| { |