From ca5745aa6d732bde7f1b9525a0d22e889a5d3497 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 25 Feb 2023 04:54:48 +0200 Subject: [PATCH] Fixed compiler warning --- Core/Time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Time.cpp b/Core/Time.cpp index dd505c0..3fc842c 100644 --- a/Core/Time.cpp +++ b/Core/Time.cpp @@ -72,7 +72,7 @@ namespace Time int DaysInMonth[] = {31, result.Year % 4 == 0 ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; for (result.Month = 0; result.Month < 12; result.Month++) { - if (Days < DaysInMonth[result.Month]) + if (Days < static_cast(DaysInMonth[result.Month])) break; Days -= DaysInMonth[result.Month]; }