summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2022-10-19 08:27:40 +0200
committerRafał Mikrut <mikrutrafal@protonmail.com>2022-10-19 08:29:29 +0200
commit86fa3ba56015b0fb6f282277b37c211fe803c6f9 (patch)
tree6bed41905de585c017617e1fa5e4efa3ecf3d141 /core/io
parent2e3662acbd8586697db38569785cc9f97dff945e (diff)
Fix exporting big 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);