| commit | 28b33e0b0b624ec2e7df9456537829aac7eb592b | [log] [tgz] |
|---|---|---|
| author | Cheng Chen <chengchen@google.com> | Thu Mar 01 12:31:26 2018 -0800 |
| committer | Cheng Chen <chengchen@google.com> | Fri Mar 02 18:09:47 2018 +0000 |
| tree | bcfb8d628be3a4b072e985555959decccfc53471 | |
| parent | efef81c8abc73ccf175e11f2dfa067f784a5dbcb [diff] [blame] |
Suppress integer overflow warning Change-Id: Ia6bce316ae27175a15c2fe49f10ed34706069a7f
diff --git a/aom_dsp/variance.c b/aom_dsp/variance.c index 5050055..05db2be 100644 --- a/aom_dsp/variance.c +++ b/aom_dsp/variance.c
@@ -446,7 +446,7 @@ for (j = 0; j < w; ++j) { const int diff = a[j] - b[j]; *sum += diff; - *sse += diff * diff; + *sse += (int64_t)diff * (int64_t)diff; } a += a_stride; b += b_stride;