Skip to content

Commit 1ca7682

Browse files
committed
fix note ports optional value
1 parent 8eb3bf9 commit 1ca7682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clap/extensions/note_ports.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ pub fn extension(comptime Plugin: type) *const c.clap_plugin_note_ports_t {
1414

1515
const note_ports = struct {
1616
pub fn count(_: [*c]const c.clap_plugin_t, is_input: bool) callconv(.c) u32 {
17-
const ports = if (is_input) meta_ports.?.in else meta_ports.?.out;
17+
const ports = if (is_input) meta_ports.in else meta_ports.out;
1818
return @intCast(ports.len);
1919
}
2020

2121
pub fn get(_: [*c]const c.clap_plugin_t, index: u32, is_input: bool, info: [*c]c.clap_note_port_info_t) callconv(.c) bool {
22-
const ports = if (is_input) meta_ports.?.in else meta_ports.?.out;
22+
const ports = if (is_input) meta_ports.in else meta_ports.out;
2323

2424
if (index >= ports.len) {
2525
return false;

0 commit comments

Comments
 (0)