summaryrefslogtreecommitdiff
path: root/scene/gui/texture_progress.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-04 09:25:07 +0200
committerGitHub <noreply@github.com>2018-10-04 09:25:07 +0200
commitbdf898e38d8f7d87496a4ba30a2c2da2f6771988 (patch)
tree878f80e9a6c3bfd0c944887259afc1884b0cc976 /scene/gui/texture_progress.cpp
parent171be91804d68adf7d36e36a3f15e885cda47bf7 (diff)
parenta0f206aae81b44fb48cb74900b9831835da40327 (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.cpp4
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];
}