فهرست منبع

Changed type to make it work on x32 architecture.

(cherry picked from commit 9f3d7d970921ea89de7186dba649fc4ebb401b7a)
zero13cool 4 سال پیش
والد
کامیت
57416ce3ff
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      modules/gdnative/gdnative/string.cpp
  2. 1 1
      modules/gdnative/gdnative_api.json
  3. 1 1
      modules/gdnative/include/gdnative/string.h

+ 1 - 1
modules/gdnative/gdnative/string.cpp

@@ -1104,7 +1104,7 @@ godot_string GDAPI godot_string_get_file(const godot_string *p_self) {
 	return result;
 	return result;
 }
 }
 
 
-godot_string GDAPI godot_string_humanize_size(size_t p_size) {
+godot_string GDAPI godot_string_humanize_size(uint64_t p_size) {
 	godot_string result;
 	godot_string result;
 	String return_value = String::humanize_size(p_size);
 	String return_value = String::humanize_size(p_size);
 	memnew_placement(&result, String(return_value));
 	memnew_placement(&result, String(return_value));

+ 1 - 1
modules/gdnative/gdnative_api.json

@@ -5847,7 +5847,7 @@
         "name": "godot_string_humanize_size",
         "name": "godot_string_humanize_size",
         "return_type": "godot_string",
         "return_type": "godot_string",
         "arguments": [
         "arguments": [
-          ["size_t", "p_size"]
+          ["uint64_t", "p_size"]
         ]
         ]
       },
       },
       {
       {

+ 1 - 1
modules/gdnative/include/gdnative/string.h

@@ -219,7 +219,7 @@ godot_bool godot_string_empty(const godot_string *p_self);
 // path functions
 // path functions
 godot_string GDAPI godot_string_get_base_dir(const godot_string *p_self);
 godot_string GDAPI godot_string_get_base_dir(const godot_string *p_self);
 godot_string GDAPI godot_string_get_file(const godot_string *p_self);
 godot_string GDAPI godot_string_get_file(const godot_string *p_self);
-godot_string GDAPI godot_string_humanize_size(size_t p_size);
+godot_string GDAPI godot_string_humanize_size(uint64_t p_size);
 godot_bool GDAPI godot_string_is_abs_path(const godot_string *p_self);
 godot_bool GDAPI godot_string_is_abs_path(const godot_string *p_self);
 godot_bool GDAPI godot_string_is_rel_path(const godot_string *p_self);
 godot_bool GDAPI godot_string_is_rel_path(const godot_string *p_self);
 godot_bool GDAPI godot_string_is_resource_file(const godot_string *p_self);
 godot_bool GDAPI godot_string_is_resource_file(const godot_string *p_self);