From b21931c4a35b72ae948784dd90fed76f4364ae80 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 9 Oct 2022 23:21:32 +0200 Subject: Type `GDNativePropertyInfo.type` field as `GDNativeVariantType` --- include/godot_cpp/classes/wrapped.hpp | 2 +- include/godot_cpp/core/method_bind.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/godot_cpp') diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index 5bd032a..ce1bc51 100644 --- a/include/godot_cpp/classes/wrapped.hpp +++ b/include/godot_cpp/classes/wrapped.hpp @@ -219,7 +219,7 @@ public: cls->plist = reinterpret_cast(memalloc(sizeof(GDNativePropertyInfo) * list.size())); \ cls->plist_size = 0; \ for (const ::godot::PropertyInfo &E : list) { \ - cls->plist[cls->plist_size].type = E.type; \ + cls->plist[cls->plist_size].type = static_cast(E.type); \ cls->plist[cls->plist_size].name = _alloc_and_copy_cstr(E.name.utf8().get_data()); \ cls->plist[cls->plist_size].hint = E.hint; \ cls->plist[cls->plist_size].hint_string = _alloc_and_copy_cstr(E.hint_string.utf8().get_data()); \ diff --git a/include/godot_cpp/core/method_bind.hpp b/include/godot_cpp/core/method_bind.hpp index 953a305..155a765 100644 --- a/include/godot_cpp/core/method_bind.hpp +++ b/include/godot_cpp/core/method_bind.hpp @@ -182,7 +182,7 @@ public: for (int i = 0; i < p_method_info.arguments.size(); i++) { names.push_back(p_method_info.arguments[i].name.utf8().get_data()); arguments.push_back(GDNativePropertyInfo{ - static_cast(p_method_info.arguments[i].type), // uint32_t type; + static_cast(p_method_info.arguments[i].type), // GDNativeVariantType type; _alloc_and_copy_cstr(p_method_info.arguments[i].name.utf8().get_data()), // const char *name; _alloc_and_copy_cstr(p_method_info.arguments[i].class_name.utf8().get_data()), // const char *class_name; p_method_info.arguments[i].hint, // NONE //uint32_t hint; -- cgit v1.2.3