diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2018-02-10 17:36:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 17:36:57 +0100 |
commit | 31dd21a8d9c3d30d7347fc30f18cd17a41a9b4bc (patch) | |
tree | e184aafaa9a0de905737f81c9dd6971f8085798d /modules/gdnative/SCsub | |
parent | 68f277477b5a5f3003405e36c6b6853720cb91de (diff) | |
parent | 8e39cdd5d532f2ed7d82da971f0a28fa7862b923 (diff) |
Merge pull request #16539 from eska014/gdnative-macwarn
Fix GDNATIVE_API_INIT() warning about sign mismatch
Diffstat (limited to 'modules/gdnative/SCsub')
-rw-r--r-- | modules/gdnative/SCsub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index fd9df2673b..acfb83bc10 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']: |