From 4e43c6d89bdcc0fe003a932ebc826f64020f0cf5 Mon Sep 17 00:00:00 2001 From: David Hilvert Date: Wed, 11 Jun 2008 00:04:15 +0000 Subject: [PATCH] d2::trans_multi: Use correct maximal extents for fill initialization. --- d2/trans_multi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d2/trans_multi.h b/d2/trans_multi.h index fc0aaec..fe46d1a 100644 --- a/d2/trans_multi.h +++ b/d2/trans_multi.h @@ -566,12 +566,12 @@ private: for (unsigned int i = b.imin; i < b.imax; i++) { update_map[i * cur_ref_width + b.jmin] |= (1 | 2 | 4); - update_map[i * cur_ref_width + b.jmax] |= (8 | 16 | 32); + update_map[i * cur_ref_width + (b.jmax - 1)] |= (8 | 16 | 32); } for (unsigned int j = b.jmin; j < b.jmax; j++) { update_map[b.imin * cur_ref_width + j] |= (1 | 64 | 8); - update_map[b.imax * cur_ref_width + j] |= (4 | 128 | 32); + update_map[(b.imax - 1) * cur_ref_width + j] |= (4 | 128 | 32); } } -- 2.11.4.GIT