diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-04 09:25:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 09:25:07 +0200 |
commit | bdf898e38d8f7d87496a4ba30a2c2da2f6771988 (patch) | |
tree | 878f80e9a6c3bfd0c944887259afc1884b0cc976 /scene/gui/nine_patch_rect.cpp | |
parent | 171be91804d68adf7d36e36a3f15e885cda47bf7 (diff) | |
parent | a0f206aae81b44fb48cb74900b9831835da40327 (diff) |
Merge pull request #22707 from karroffel/clang-warnings
fix enum cast warnings on clang
Diffstat (limited to 'scene/gui/nine_patch_rect.cpp')
-rw-r--r-- | scene/gui/nine_patch_rect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/nine_patch_rect.cpp b/scene/gui/nine_patch_rect.cpp index b8f6ffe6d2..c6a34921c7 100644 --- a/scene/gui/nine_patch_rect.cpp +++ b/scene/gui/nine_patch_rect.cpp @@ -110,7 +110,7 @@ Ref<Texture> NinePatchRect::get_texture() const { void NinePatchRect::set_patch_margin(Margin p_margin, int p_size) { - ERR_FAIL_INDEX(p_margin, 4); + ERR_FAIL_INDEX((int)p_margin, 4); margin[p_margin] = p_size; update(); minimum_size_changed(); @@ -132,7 +132,7 @@ void NinePatchRect::set_patch_margin(Margin p_margin, int p_size) { int NinePatchRect::get_patch_margin(Margin p_margin) const { - ERR_FAIL_INDEX_V(p_margin, 4, 0); + ERR_FAIL_INDEX_V((int)p_margin, 4, 0); return margin[p_margin]; } |