diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-25 15:19:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 15:19:10 +0200 |
commit | f164c00a94793234879dc1824bd657db6df939ec (patch) | |
tree | 2e6c19a493c20e356b01a2a79f10e63c6e75ff56 /modules/gdnative/pluginscript | |
parent | 313e1f62bb4ed85041bcd9290ec76660878fcd6b (diff) | |
parent | da5d7db6100955922e08ee99a02f827214ed8281 (diff) |
Merge pull request #49061 from madmiraal/rename-len-length
Rename File::get_len() get_length()
Diffstat (limited to 'modules/gdnative/pluginscript')
-rw-r--r-- | modules/gdnative/pluginscript/pluginscript_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_script.cpp b/modules/gdnative/pluginscript/pluginscript_script.cpp index a0d7fbf726..93fe3b3992 100644 --- a/modules/gdnative/pluginscript/pluginscript_script.cpp +++ b/modules/gdnative/pluginscript/pluginscript_script.cpp @@ -441,7 +441,7 @@ Error PluginScript::load_source_code(const String &p_path) { FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err); ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + p_path + "'."); - uint64_t len = f->get_len(); + uint64_t len = f->get_length(); sourcef.resize(len + 1); uint8_t *w = sourcef.ptrw(); uint64_t r = f->get_buffer(w, len); |