Skip to content

Commit

Permalink
image: remove comptime_int and comptime_float from integral image
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Dec 9, 2024
1 parent ac73199 commit fe4aa77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.zig
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub fn Image(comptime T: type) type {
integral: *Image(if (isScalar(T)) f32 else [Self.channels()]f32),
) !void {
switch (@typeInfo(T)) {
.comptime_int, .int, .comptime_float, .float => {
.int, .float => {
if (!self.hasSameShape(integral.*)) {
integral.* = try Image(f32).initAlloc(allocator, self.rows, self.cols);
}
Expand Down

0 comments on commit fe4aa77

Please sign in to comment.