summaryrefslogtreecommitdiff
path: root/raster/imagescale.c
diff options
context:
space:
mode:
Diffstat (limited to 'raster/imagescale.c')
-rw-r--r--raster/imagescale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/raster/imagescale.c b/raster/imagescale.c
index 96486033..3022189e 100644
--- a/raster/imagescale.c
+++ b/raster/imagescale.c
@@ -4,9 +4,9 @@
typedef unsigned char byte;
-static inline void srown(byte * restrict src, byte * restrict dst, unsigned w, unsigned denom, unsigned n)
+static inline void srown(byte * restrict src, byte * restrict dst, int w, int denom, int n)
{
- unsigned x, left, k;
+ int x, left, k;
unsigned sum[FZ_MAXCOLORS];
left = 0;
@@ -35,9 +35,9 @@ static inline void srown(byte * restrict src, byte * restrict dst, unsigned w, u
dst[k] = sum[k] / left;
}
-static inline void srownp2(byte * restrict src, byte * restrict dst, unsigned w, unsigned log2denom, unsigned n)
+static inline void srownp2(byte * restrict src, byte * restrict dst, int w, int log2denom, int n)
{
- unsigned x, left, k;
+ int x, left, k;
unsigned sum[FZ_MAXCOLORS];
left = 0;