From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 9e5b50d3a..04a88b4d7 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -321,7 +321,7 @@ swap_now: if (my_pos > swap_pos) incrmnt = -1; - for (unsigned int j = my_pos; j != swap_pos; j += incrmnt) + for (size_t j = my_pos; j != swap_pos; j += incrmnt) { if ((j + incrmnt > EventHandlers[i].size() - 1) || ((incrmnt == -1) && (j == 0))) continue; -- cgit v1.3.1-10-gc9f91