ref: a977ede2e4890e9a24486dbd8aba37a23f56b04d
parent: 88481ca4be070b990d69207111432c091b3cba21
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Mon Nov 12 04:39:30 EST 2018
Fix type mismatch (int32_t vs. int)
--- a/src/looprestoration_tmpl.c
+++ b/src/looprestoration_tmpl.c
@@ -324,7 +324,7 @@
// We skip the first and last columns, as they are never used
for (int x = 1; x < w - 1; x++) {
- int *ds = dst + x;
+ int32_t *ds = dst + x;
const pixel *s = src + x;
int a = s[0] * s[0];
int b = s[REST_UNIT_STRIDE] * s[REST_UNIT_STRIDE];
@@ -367,7 +367,7 @@
dst += REST_UNIT_STRIDE;
for (int x = 0; x < w; x++) {
- int *ds = dst + x;
+ int32_t *ds = dst + x;
const pixel *s = src + 3 * REST_UNIT_STRIDE + x;
int a = s[-3 * REST_UNIT_STRIDE] * s[-3 * REST_UNIT_STRIDE];
int b = s[-2 * REST_UNIT_STRIDE] * s[-2 * REST_UNIT_STRIDE];