summaryrefslogtreecommitdiff
path: root/platform/windows/power_windows.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-15 22:52:35 +0200
committerGitHub <noreply@github.com>2019-06-15 22:52:35 +0200
commit182b1fb9f16ce8523ce5cc28cd11b66f52dc09e4 (patch)
treeca6b24cfa5f1085209743e093b96b9b712940c01 /platform/windows/power_windows.cpp
parente21f808530b02a393a46d597afe89b4fbf886bb6 (diff)
parent68735d2a886bc2cf6b0a4300d1aa5ece952929ed (diff)
Merge pull request #29797 from akien-mga/fix-warnings
Fix compilation warnings in JS and Windows builds
Diffstat (limited to 'platform/windows/power_windows.cpp')
-rw-r--r--platform/windows/power_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/power_windows.cpp b/platform/windows/power_windows.cpp
index b96ae51132..0efd88c216 100644
--- a/platform/windows/power_windows.cpp
+++ b/platform/windows/power_windows.cpp
@@ -89,7 +89,7 @@ bool PowerWindows::GetPowerInfo_Windows() {
if (pct != 255) { /* 255 == unknown */
percent_left = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */
}
- if (secs != 0xFFFFFFFF) { /* ((DWORD)-1) == unknown */
+ if (secs != (int)0xFFFFFFFF) { /* ((DWORD)-1) == unknown */
nsecs_left = secs;
}
}