From 8e39cdd5d532f2ed7d82da971f0a28fa7862b923 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Sat, 10 Feb 2018 17:19:16 +0100 Subject: Fix GDNATIVE_API_INIT() warning about sign mismatch --- modules/gdnative/SCsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdnative/SCsub') diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index c92c3f30a2..438c5f9a50 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -28,7 +28,7 @@ def _build_gdnative_api_struct_header(api): '\textern const godot_gdnative_ext_{0}_api_struct *_gdnative_wrapper_{0}_api_struct;'.format(name)) gdnative_api_init_macro.append('\t_gdnative_wrapper_api_struct = options->api_struct;') - gdnative_api_init_macro.append('\tfor (int i = 0; i < _gdnative_wrapper_api_struct->num_extensions; i++) { ') + gdnative_api_init_macro.append('\tfor (unsigned int i = 0; i < _gdnative_wrapper_api_struct->num_extensions; i++) { ') gdnative_api_init_macro.append('\t\tswitch (_gdnative_wrapper_api_struct->extensions[i]->type) {') for name in api['extensions']: -- cgit v1.2.3