summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-09-13 15:34:16 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-09-13 15:34:16 +0200
commitac2f68760d67200d508ac99b198ccb95f9a7d59e (patch)
treeeb90ba82633fd46b3ce896715eda6c50403babfc
parent24e1039eb6fe32115e8d1a62a84965e9be19a2ed (diff)
Fix int overflow in EditorResourcePreview::_preview_ready
-rw-r--r--editor/editor_resource_preview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp
index 5c15ebb1eb..77e9220b6d 100644
--- a/editor/editor_resource_preview.cpp
+++ b/editor/editor_resource_preview.cpp
@@ -116,7 +116,7 @@ void EditorResourcePreview::_preview_ready(const String &p_str, const Ref<Textur
uint64_t modified_time = 0;
if (p_str.begins_with("ID:")) {
- hash = p_str.get_slicec(':', 2).to_int();
+ hash = uint32_t(p_str.get_slicec(':', 2).to_int64());
path = "ID:" + p_str.get_slicec(':', 1);
} else {
modified_time = FileAccess::get_modified_time(path);