Skip to content

Commit

Permalink
Use gint64 as accumulator type for the uint/int paths
Browse files Browse the repository at this point in the history
To align with `reduce{v,h}`.
  • Loading branch information
kleisauke committed Nov 20, 2024
1 parent 3f5a4af commit 83603b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libvips/resample/shrinkh.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ vips_shrinkh_gen2(VipsShrinkh *shrink, VipsRegion *out_region, VipsRegion *ir,
ISHRINK(int, short, bands);
break;
case VIPS_FORMAT_UINT:
ISHRINK(double, unsigned int, bands);
ISHRINK(gint64, unsigned int, bands);
break;
case VIPS_FORMAT_INT:
ISHRINK(double, int, bands);
ISHRINK(gint64, int, bands);
break;
case VIPS_FORMAT_FLOAT:
FSHRINK(float);
Expand Down
4 changes: 2 additions & 2 deletions libvips/resample/shrinkv.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ vips_shrinkv_gen2(VipsShrinkv *shrink, VipsRegion *out_region, VipsRegion *ir,
ISHRINK(int, short, bands);
break;
case VIPS_FORMAT_UINT:
ISHRINK(double, unsigned int, bands);
ISHRINK(gint64, unsigned int, bands);
break;
case VIPS_FORMAT_INT:
ISHRINK(double, int, bands);
ISHRINK(gint64, int, bands);
break;
case VIPS_FORMAT_FLOAT:
FSHRINK(float);
Expand Down

0 comments on commit 83603b8

Please sign in to comment.