aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGustav Lund2018-04-23 15:20:38 +0200
committerRémi Verschelde2018-05-08 09:10:26 +0200
commita6c9527c2f125355fd7db9a80f1722e98e7cb666 (patch)
tree4bcf2bd673d749dfbd2e4d48e0920e6e33ab29ad /drivers
parentf4c469f1b7a6af996374192d5fd3fc5fd6b34271 (diff)
downloadgodot-a6c9527c2f125355fd7db9a80f1722e98e7cb666.tar.gz
godot-a6c9527c2f125355fd7db9a80f1722e98e7cb666.tar.zst
godot-a6c9527c2f125355fd7db9a80f1722e98e7cb666.zip
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/file_access_unix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp
index a7a3eef93..e79fef8fe 100644
--- a/drivers/unix/file_access_unix.cpp
+++ b/drivers/unix/file_access_unix.cpp
@@ -184,7 +184,7 @@ size_t FileAccessUnix::get_position() const {
ERR_FAIL_COND_V(!f, 0);
- int pos = ftell(f);
+ long pos = ftell(f);
if (pos < 0) {
check_errors();
ERR_FAIL_V(0);
@@ -196,10 +196,10 @@ size_t FileAccessUnix::get_len() const {
ERR_FAIL_COND_V(!f, 0);
- int pos = ftell(f);
+ long pos = ftell(f);
ERR_FAIL_COND_V(pos < 0, 0);
ERR_FAIL_COND_V(fseek(f, 0, SEEK_END), 0);
- int size = ftell(f);
+ long size = ftell(f);
ERR_FAIL_COND_V(size < 0, 0);
ERR_FAIL_COND_V(fseek(f, pos, SEEK_SET), 0);