diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-29 13:08:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-29 13:08:38 +0000 |
commit | cc7c9000e05e1810d408f4e9b40e2073e85cb0fb (patch) | |
tree | 37c1a4b7124290324091b2aeaeece77ebbfcfe2f /src/libmime | |
parent | 47947673589848dc2dfda3c62a9977808c37235b (diff) | |
download | rspamd-cc7c9000e05e1810d408f4e9b40e2073e85cb0fb.tar.gz rspamd-cc7c9000e05e1810d408f4e9b40e2073e85cb0fb.zip |
[Minor] Sigh, reverse loop is bloody hard in C
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/scan_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index d2f7e0a8b..07800ea06 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -903,7 +903,7 @@ rspamd_check_action_metric (struct rspamd_task *task, /* * Select result by score */ - for (unsigned int i = scan_result->nactions - 1; i >= 0; i--) { + for (size_t i = scan_result->nactions - 1; i != (size_t)-1; i--) { action_lim = &scan_result->actions_config[i]; sc = action_lim->cur_limit; |