From 8b24e979107b29276c0d306296475d2c5feb88e8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 25 Dec 2016 12:44:30 +0000 Subject: [Minor] Oops, fix indexes one more time --- src/libutil/shingles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c index 5676c9c55..4f2e85fa1 100644 --- a/src/libutil/shingles.c +++ b/src/libutil/shingles.c @@ -242,9 +242,9 @@ rspamd_shingles_from_image (guchar *dct, } for (i = 0; i < RSPAMD_DCT_LEN / NBBY; i ++) { INNER_CYCLE_SHINGLES (0, RSPAMD_SHINGLE_SIZE / 4); - INNER_CYCLE_SHINGLES (RSPAMD_SHINGLE_SIZE / 4 + 1, RSPAMD_SHINGLE_SIZE / 2); - INNER_CYCLE_SHINGLES (RSPAMD_SHINGLE_SIZE / 2 + 1, 3 * RSPAMD_SHINGLE_SIZE / 4); - INNER_CYCLE_SHINGLES (3 * RSPAMD_SHINGLE_SIZE / 4 + 1, RSPAMD_SHINGLE_SIZE); + INNER_CYCLE_SHINGLES (RSPAMD_SHINGLE_SIZE / 4, RSPAMD_SHINGLE_SIZE / 2); + INNER_CYCLE_SHINGLES (RSPAMD_SHINGLE_SIZE / 2, 3 * RSPAMD_SHINGLE_SIZE / 4); + INNER_CYCLE_SHINGLES (3 * RSPAMD_SHINGLE_SIZE / 4, RSPAMD_SHINGLE_SIZE); beg++; } -- cgit v1.2.3