summaryrefslogtreecommitdiffstats
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-27 10:07:30 +0100
committermarxin <mliska@suse.cz>2019-04-02 17:14:47 +0200
commite7f22ebdcd36d620a21977392365661aa956527f (patch)
treef2ef4c28bcf6c65f287ae54839d19672418536d4 /core/bind/core_bind.cpp
parent612a109b81320fcd2f06e5ddff71925d81aca509 (diff)
downloadredot-engine-e7f22ebdcd36d620a21977392365661aa956527f.tar.gz
Enable warnings=extra on clang and GCC testers.
And remove 2 warnings from warnings=extra.
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index e7ddbc690f..67de156fc3 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -792,7 +792,7 @@ Dictionary _OS::get_datetime_from_unix_time(int64_t unix_time_val) const {
size_t imonth = 0;
- while (dayno >= MONTH_DAYS_TABLE[LEAPYEAR(year)][imonth]) {
+ while ((unsigned long)dayno >= MONTH_DAYS_TABLE[LEAPYEAR(year)][imonth]) {
dayno -= MONTH_DAYS_TABLE[LEAPYEAR(year)][imonth];
imonth++;
}