aboutsummaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorHein-Pieter van Braam2017-08-31 23:30:35 +0200
committerHein-Pieter van Braam2017-09-01 08:13:12 +0200
commitf9467ec1ea6c0dac2ea513b7dfe58d0349788e02 (patch)
tree05421200fdd55c97b3b60895597f487d8ac51afa /editor/import
parent51ae90d7893fd392dd8938cc41c52081e5065794 (diff)
downloadgodot-f9467ec1ea6c0dac2ea513b7dfe58d0349788e02.tar.gz
godot-f9467ec1ea6c0dac2ea513b7dfe58d0349788e02.tar.zst
godot-f9467ec1ea6c0dac2ea513b7dfe58d0349788e02.zip
Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/editor_scene_importer_gltf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp
index 2f03e7285..5fa46fac2 100644
--- a/editor/import/editor_scene_importer_gltf.cpp
+++ b/editor/import/editor_scene_importer_gltf.cpp
@@ -474,7 +474,7 @@ Error EditorSceneImporterGLTF::_decode_buffer_view(GLTFState &state, int p_buffe
int buffer_end = (stride * (count - 1)) + element_size;
ERR_FAIL_COND_V(buffer_end > bv.byte_length, ERR_PARSE_ERROR);
- ERR_FAIL_COND_V((offset + buffer_end) > buffer.size(), ERR_PARSE_ERROR);
+ ERR_FAIL_COND_V((int)(offset + buffer_end) > buffer.size(), ERR_PARSE_ERROR);
//fill everything as doubles