Skip to content

Commit 35cd491

Browse files
committed
image: fix typo
1 parent cdc34b8 commit 35cd491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pub fn Image(comptime T: type) type {
284284
const area: f32 = @floatFromInt((r2 - r1) * (c2 - c1));
285285
const sum = integral.data[pos22] - integral.data[pos21] - integral.data[pos12] + integral.data[pos11];
286286
blurred.data[pos] = switch (@typeInfo(T)) {
287-
.int, .comtime_int => as(T, @round(sum / area)),
287+
.int, .comptime_int => as(T, @round(sum / area)),
288288
.float, .comptime_float => as(T, sum / area),
289289
else => @compileError("Can't compute the boxBlur image with struct fields of type " ++ @typeName(T) ++ "."),
290290
};

0 commit comments

Comments
 (0)