From 860e24683fd4ee627a3a950418dbd2b4cc6fe78b Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 9 May 2022 12:47:10 +0300 Subject: Make enum/constant binds 64-bit. --- core/extension/extension_api_dump.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/extension') diff --git a/core/extension/extension_api_dump.cpp b/core/extension/extension_api_dump.cpp index 9e8addf8aa..edd48cf9cd 100644 --- a/core/extension/extension_api_dump.cpp +++ b/core/extension/extension_api_dump.cpp @@ -334,14 +334,14 @@ Dictionary NativeExtensionAPIDump::generate_extension_api() { { // Global enums and constants. Array constants; - HashMap>> enum_list; + HashMap>> enum_list; for (int i = 0; i < CoreConstants::get_global_constant_count(); i++) { - int value = CoreConstants::get_global_constant_value(i); + int64_t value = CoreConstants::get_global_constant_value(i); String enum_name = CoreConstants::get_global_constant_enum(i); String name = CoreConstants::get_global_constant_name(i); if (!enum_name.is_empty()) { - enum_list[enum_name].push_back(Pair(name, value)); + enum_list[enum_name].push_back(Pair(name, value)); } else { Dictionary d; d["name"] = name; @@ -353,11 +353,11 @@ Dictionary NativeExtensionAPIDump::generate_extension_api() { api_dump["global_constants"] = constants; Array enums; - for (const KeyValue>> &E : enum_list) { + for (const KeyValue>> &E : enum_list) { Dictionary d1; d1["name"] = E.key; Array values; - for (const Pair &F : E.value) { + for (const Pair &F : E.value) { Dictionary d2; d2["name"] = F.first; d2["value"] = F.second; -- cgit v1.2.3