You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
committed by
Rémi Verschelde
parent
dd807ca5e7
commit
e359ba3733
@@ -301,7 +301,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);
|
||||
|
||||
Reference in New Issue
Block a user