summaryrefslogtreecommitdiffstats
path: root/drivers/windows/file_access_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 /drivers/windows/file_access_windows.cpp
parente21f808530b02a393a46d597afe89b4fbf886bb6 (diff)
parent68735d2a886bc2cf6b0a4300d1aa5ece952929ed (diff)
downloadredot-engine-182b1fb9f16ce8523ce5cc28cd11b66f52dc09e4.tar.gz
Merge pull request #29797 from akien-mga/fix-warnings
Fix compilation warnings in JS and Windows builds
Diffstat (limited to 'drivers/windows/file_access_windows.cpp')
-rw-r--r--drivers/windows/file_access_windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp
index 31360d319f..646e744248 100644
--- a/drivers/windows/file_access_windows.cpp
+++ b/drivers/windows/file_access_windows.cpp
@@ -93,7 +93,7 @@ Error FileAccessWindows::_open(const String &p_path, int p_mode_flags) {
// a file using the wrong case (which *works* on Windows, but won't on other
// platforms).
if (p_mode_flags == READ) {
- WIN32_FIND_DATAW d = { 0 };
+ WIN32_FIND_DATAW d;
HANDLE f = FindFirstFileW(path.c_str(), &d);
if (f) {
String fname = d.cFileName;
@@ -302,7 +302,7 @@ void FileAccessWindows::store_buffer(const uint8_t *p_src, int p_length) {
}
prev_op = WRITE;
}
- ERR_FAIL_COND(fwrite(p_src, 1, p_length, f) != p_length);
+ ERR_FAIL_COND(fwrite(p_src, 1, p_length, f) != (size_t)p_length);
}
bool FileAccessWindows::file_exists(const String &p_name) {