# HG changeset patch # User philipjsg # Date 1038676447 0 # Node ID 6d5e3fe7aea1474e679a321632950c375fd3c10e # Parent 3dbbdc2f8bd3e4843225fa8b5ae6f27edbb85d2c Simplify an expression and eliminate a compile warning diff -r 3dbbdc2f8bd3 -r 6d5e3fe7aea1 imgresample.c --- a/imgresample.c Wed Nov 27 01:20:42 2002 +0000 +++ b/imgresample.c Sat Nov 30 17:14:07 2002 +0000 @@ -308,7 +308,7 @@ we opt for aligned writes, as unaligned writes have a huge overhead. To do this, do enough scalar resamples to get dst 16-byte aligned. */ - i = (16-((int)dst) & 0xf) & 0xf; + i = (-(int)dst) & 0xf; while(i>0) { sum = s[0 * wrap] * filter[0] + s[1 * wrap] * filter[1] +