diff options
Diffstat (limited to 'src/zeal.zig')
-rw-r--r-- | src/zeal.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zeal.zig b/src/zeal.zig index 3be59fb..cf88b11 100644 --- a/src/zeal.zig +++ b/src/zeal.zig @@ -201,7 +201,8 @@ pub const Source = struct { } pub fn bind(self: Source, buffer: Buffer) Error!void { - try al.source.set(self.reference, .buffer, @intCast(buffer.reference)); + const reference: i32 = @intCast(buffer.reference); + try al.source.set(self.reference, .buffer, reference); } /// Specify if the source always has 3D spatialization features (true), |