From 45ff11cd1e8355f5b08c2b6511e6132a51ccbb92 Mon Sep 17 00:00:00 2001 From: sjanzou Date: Fri, 31 Jul 2020 01:51:23 -0600 Subject: [PATCH] Fix all linux build errors for 2020.2.29.r3 ssc 242 --- shared/lib_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/lib_util.cpp b/shared/lib_util.cpp index 14b05517e..d7a8e3a8e 100644 --- a/shared/lib_util.cpp +++ b/shared/lib_util.cpp @@ -904,7 +904,7 @@ size_t util::hour_of_year(size_t month, size_t day, size_t hour) std::vector days_in_months = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; if (month >= 1 && month <= 12) { - for (int m = 0; m < (month - 1); m++) + for (size_t m = 0; m < (month - 1); m++) h += days_in_months[m] * 24; } else ok = false;