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

GDNative: Make godot_int an int64_t
This commit is contained in:
Rémi Verschelde 2020-02-13 12:52:17 +01:00 committed by GitHub
commit 835406cf04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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) { 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) { void *godot_get_class_tag(const godot_string_name *p_class) {

View File

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

View File

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