summaryrefslogtreecommitdiff
path: root/scene/gui/label.cpp
diff options
context:
space:
mode:
authorkarroffel <therzog@mail.de>2018-10-04 09:17:59 +0200
committerkarroffel <therzog@mail.de>2018-10-04 09:17:59 +0200
commita0f206aae81b44fb48cb74900b9831835da40327 (patch)
tree878f80e9a6c3bfd0c944887259afc1884b0cc976 /scene/gui/label.cpp
parent171be91804d68adf7d36e36a3f15e885cda47bf7 (diff)
fix enum cast warnings on clang
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r--scene/gui/label.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 91dab27930..6ff2d232f0 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -511,7 +511,7 @@ void Label::regenerate_word_cache() {
void Label::set_align(Align p_align) {
- ERR_FAIL_INDEX(p_align, 4);
+ ERR_FAIL_INDEX((int)p_align, 4);
align = p_align;
update();
}
@@ -523,7 +523,7 @@ Label::Align Label::get_align() const {
void Label::set_valign(VAlign p_align) {
- ERR_FAIL_INDEX(p_align, 4);
+ ERR_FAIL_INDEX((int)p_align, 4);
valign = p_align;
update();
}