aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmime/scan_result.c2
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;