diff options
| author | karroffel <therzog@mail.de> | 2018-10-04 09:17:59 +0200 |
|---|---|---|
| committer | karroffel <therzog@mail.de> | 2018-10-04 09:17:59 +0200 |
| commit | a0f206aae81b44fb48cb74900b9831835da40327 (patch) | |
| tree | 878f80e9a6c3bfd0c944887259afc1884b0cc976 /scene/gui/control.cpp | |
| parent | 171be91804d68adf7d36e36a3f15e885cda47bf7 (diff) | |
| download | redot-engine-a0f206aae81b44fb48cb74900b9831835da40327.tar.gz | |
fix enum cast warnings on clang
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index dc18895298..b90a4c17f4 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2235,13 +2235,13 @@ String Control::_get_tooltip() const { void Control::set_focus_neighbour(Margin p_margin, const NodePath &p_neighbour) { - ERR_FAIL_INDEX(p_margin, 4); + ERR_FAIL_INDEX((int)p_margin, 4); data.focus_neighbour[p_margin] = p_neighbour; } NodePath Control::get_focus_neighbour(Margin p_margin) const { - ERR_FAIL_INDEX_V(p_margin, 4, NodePath()); + ERR_FAIL_INDEX_V((int)p_margin, 4, NodePath()); return data.focus_neighbour[p_margin]; } |
