summaryrefslogtreecommitdiff
path: root/core/bind
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-02 18:24:06 +0200
committerGitHub <noreply@github.com>2019-04-02 18:24:06 +0200
commitf5013e327769df7168e5f6bd68aa6309d2b825de (patch)
treef2ef4c28bcf6c65f287ae54839d19672418536d4 /core/bind
parent612a109b81320fcd2f06e5ddff71925d81aca509 (diff)
parente7f22ebdcd36d620a21977392365661aa956527f (diff)
Merge pull request #26343 from marxin/warnings-all-add-most-of-Wextra
Enable most of -Wextra warnings for warnings=all.
Diffstat (limited to 'core/bind')
-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++;
}