aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/line_2d_editor_plugin.cpp
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/plugins/line_2d_editor_plugin.cpp
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/plugins/line_2d_editor_plugin.cpp')
-rw-r--r--editor/plugins/line_2d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/line_2d_editor_plugin.cpp b/editor/plugins/line_2d_editor_plugin.cpp
index a5f854e1b..84620a75a 100644
--- a/editor/plugins/line_2d_editor_plugin.cpp
+++ b/editor/plugins/line_2d_editor_plugin.cpp
@@ -211,7 +211,7 @@ void Line2DEditor::_bind_methods() {
}
void Line2DEditor::_mode_selected(int p_mode) {
- for (unsigned int i = 0; i < _MODE_COUNT; ++i) {
+ for (int i = 0; i < _MODE_COUNT; ++i) {
toolbar_buttons[i]->set_pressed(i == p_mode);
}
mode = Mode(p_mode);