Can someone who knows this code fix this?

SVN revision: 24413
This commit is contained in:
sebastid 2006-08-06 01:27:22 +00:00 committed by sebastid
parent 0410bbcf4a
commit e3be454d46
1 changed files with 4 additions and 0 deletions

View File

@ -1182,12 +1182,14 @@ angular_restrict_reflect_aa_annulus(DATA32 *map, int map_len, DATA32 *dst, DATA8
DATA32 a = 1 + ((ll - (l << 16)) >> 8), a0 = a;
lp = l + off;
/* FIXME: Statement with no effect */
if (lp < 0) { lp = -lp; 257 - a; }
if (lp >= map_len)
{
int m = (lp % (2 * map_len));
lp = (lp % map_len);
/* FIXME: Statement with no effect */
if (m >= map_len)
{ lp = map_len - lp - 1; 257 - a; }
}
@ -1288,12 +1290,14 @@ angular_restrict_reflect_aa_masked_annulus(DATA32 *map, int map_len, DATA32 *dst
DATA32 a = 1 + ((ll - (l << 16)) >> 8), a0 = a - 1;
lp = l + off;
/* FIXME: Statement with no effect */
if (lp < 0) { lp = -lp; 257 - a; }
if (lp >= map_len)
{
int m = (lp % (2 * map_len));
lp = (lp % map_len);
/* FIXME: Statement with no effect */
if (m >= map_len)
{ lp = map_len - lp - 1; 257 - a; }
}