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/texture_progress.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/texture_progress.cpp')
-rw-r--r-- | scene/gui/texture_progress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/texture_progress.cpp b/scene/gui/texture_progress.cpp index d28b4065fb..7ecdccb0e4 100644 --- a/scene/gui/texture_progress.cpp +++ b/scene/gui/texture_progress.cpp @@ -59,14 +59,14 @@ Ref<Texture> TextureProgress::get_over_texture() const { } void TextureProgress::set_stretch_margin(Margin p_margin, int p_size) { - ERR_FAIL_INDEX(p_margin, 4); + ERR_FAIL_INDEX((int)p_margin, 4); stretch_margin[p_margin] = p_size; update(); minimum_size_changed(); } int TextureProgress::get_stretch_margin(Margin p_margin) const { - ERR_FAIL_INDEX_V(p_margin, 4, 0); + ERR_FAIL_INDEX_V((int)p_margin, 4, 0); return stretch_margin[p_margin]; } |