summaryrefslogtreecommitdiffstats
path: root/drivers/unix/file_access_unix.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-05-03 10:37:47 +0200
committerGitHub <noreply@github.com>2018-05-03 10:37:47 +0200
commitcfd950382f01998b79ad518c9056c6ce80b7eacb (patch)
treeca408e19519835e04f36b7d04c6c5f240f921539 /drivers/unix/file_access_unix.cpp
parent75ff86f8f5cf2364af9f12455fac2fd01bb48849 (diff)
parent8a7840a304818aa4a15c8781f1402e7ed8733a36 (diff)
downloadredot-engine-cfd950382f01998b79ad518c9056c6ce80b7eacb.tar.gz
Merge pull request #18372 from Gamblify/largePckFix
Fix for large .pck files
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
-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 57826828ae..c25d34125d 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);