浏览代码

Merge pull request #36163 from akien-mga/gdnative-godot_int-int64_t

GDNative: Make godot_int an int64_t
Rémi Verschelde 5 年之前
父节点
当前提交
835406cf04

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

@@ -171,7 +171,7 @@ bool GDAPI godot_is_instance_valid(const godot_object *p_object) {
 }
 
 godot_object GDAPI *godot_instance_from_id(godot_int p_instance_id) {
-	return (godot_object *)ObjectDB::get_instance(ObjectID((uint64_t)p_instance_id));
+	return (godot_object *)ObjectDB::get_instance(ObjectID(p_instance_id));
 }
 
 void *godot_get_class_tag(const godot_string_name *p_class) {

+ 1 - 1
modules/gdnative/gdnative_api.json

@@ -6475,7 +6475,7 @@
           "name": "godot_arvr_blit",
           "return_type": "void",
           "arguments": [
-            ["int", "p_eye"],
+            ["godot_int", "p_eye"],
             ["godot_rid *", "p_render_target"],
             ["godot_rect2 *", "p_screen_rect"]
           ]

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

@@ -127,7 +127,7 @@ typedef bool godot_bool;
 
 /////// int
 
-typedef int godot_int;
+typedef int64_t godot_int;
 
 /////// real