We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc34b8 commit 35cd491Copy full SHA for 35cd491
src/image.zig
@@ -284,7 +284,7 @@ pub fn Image(comptime T: type) type {
284
const area: f32 = @floatFromInt((r2 - r1) * (c2 - c1));
285
const sum = integral.data[pos22] - integral.data[pos21] - integral.data[pos12] + integral.data[pos11];
286
blurred.data[pos] = switch (@typeInfo(T)) {
287
- .int, .comtime_int => as(T, @round(sum / area)),
+ .int, .comptime_int => as(T, @round(sum / area)),
288
.float, .comptime_float => as(T, sum / area),
289
else => @compileError("Can't compute the boxBlur image with struct fields of type " ++ @typeName(T) ++ "."),
290
};
0 commit comments