Skip to content

Commit

Permalink
Fix all linux build errors for 2020.2.29.r3 ssc 242
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Jul 31, 2020
1 parent e828a86 commit 45ff11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/lib_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ size_t util::hour_of_year(size_t month, size_t day, size_t hour)
std::vector<size_t> 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;
Expand Down

0 comments on commit 45ff11c

Please sign in to comment.