Skip to content

Commit

Permalink
Fix integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjulek committed Apr 28, 2024
1 parent c07950c commit aed530e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/bilateral.zig
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub export fn bilateralCreate(in: ?*const vs.Map, out: ?*vs.Map, user_data: ?*an
d.dt = helper.DataType.select(map, d.node1, d.vi, filter_name) catch return;

const yuv: bool = (d.vi.format.colorFamily == vs.ColorFamily.YUV);
const peak: u16 = helper.getPeak(d.vi);
const peak: u32 = helper.getPeak(d.vi);
d.peak = @floatFromInt(peak);

var i: u32 = 0;
Expand Down

0 comments on commit aed530e

Please sign in to comment.