summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-31 10:39:08 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-10-31 10:39:08 +0100
commit40258bbbe89b0372700e056e8c8af07b0fd2179f (patch)
tree8da5936f5ddf118e8dbb55d277122f2cc9c5e4c9 /core/io
parentd831ba1d6f32088abae0de00962f502ff93a0760 (diff)
parent86fa3ba56015b0fb6f282277b37c211fe803c6f9 (diff)
Merge pull request #67577 from qarmin/fix_exporting_big_templates
Fix exporting with big export templates
Diffstat (limited to 'core/io')
-rw-r--r--core/io/dir_access.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/dir_access.cpp b/core/io/dir_access.cpp
index 79e7fa16e3..7eb50d2261 100644
--- a/core/io/dir_access.cpp
+++ b/core/io/dir_access.cpp
@@ -351,7 +351,7 @@ Error DirAccess::copy(String p_from, String p_to, int p_chmod_flags) {
const size_t copy_buffer_limit = 65536; // 64 KB
fsrc->seek_end(0);
- int size = fsrc->get_position();
+ uint64_t size = fsrc->get_position();
fsrc->seek(0);
err = OK;
size_t buffer_size = MIN(size * sizeof(uint8_t), copy_buffer_limit);