aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/shingles.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-25 12:44:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-25 12:44:30 +0000
commit8b24e979107b29276c0d306296475d2c5feb88e8 (patch)
tree8078937621e8e2761b7437454518243b22a8d0b4 /src/libutil/shingles.c
parenta7ab8e48f25f9aff1dca95ffa1519e32ec795f75 (diff)
downloadrspamd-8b24e979107b29276c0d306296475d2c5feb88e8.tar.gz
rspamd-8b24e979107b29276c0d306296475d2c5feb88e8.zip
[Minor] Oops, fix indexes one more time
Diffstat (limited to 'src/libutil/shingles.c')
-rw-r--r--src/libutil/shingles.c6
1 files changed, 3 insertions, 3 deletions
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++;
}