From 1b2355f0464559131b8a3cf2bc6fbe28189494bd Mon Sep 17 00:00:00 2001 From: tonton Th Date: Wed, 22 Jan 2020 18:15:29 +0100 Subject: [PATCH] added "extern" to verbosity --- lib/interpolate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/interpolate.c b/lib/interpolate.c index b73f54c6..c1a36b6f 100644 --- a/lib/interpolate.c +++ b/lib/interpolate.c @@ -10,7 +10,7 @@ #include "../floatimg.h" -int verbosity; +extern int verbosity; /* ---------------------------------------------------------------- */ static int gray_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef) @@ -18,7 +18,6 @@ static int gray_interpolate(FloatImg *s1, FloatImg *s2, FloatImg *d, float coef) int picsize, idx; picsize = d->width * d->height; - for (idx=0; idxR[idx] = (coef * s1->R[idx]) + ((1.0-coef) * s2->R[idx]); }