summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2015-08-10 20:24:13 +0000
committermichi_cc <michi_cc@openttd.org>2015-08-10 20:24:13 +0000
commit2b8bb12d623a64897636234ed3c508517a1a2ba6 (patch)
tree015abed42269cf73bb83b2f92b029084735d82cd /src/widget.cpp
parent35b77450f80580da2aa7f087aa2a1631b92ebd62 (diff)
downloadopenttd-2b8bb12d623a64897636234ed3c508517a1a2ba6.tar.xz
(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing conversions in initializer lists.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 3b50f710d..d59ca020e 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1545,7 +1545,7 @@ void NWidgetMatrix::SetupSmallestSize(Window *w, bool init_array)
SB(nw->index, 16, 16, 0);
this->head->SetupSmallestSize(w, init_array);
- Dimension padding = {this->pip_pre + this->pip_post, this->pip_pre + this->pip_post};
+ Dimension padding = { (uint)this->pip_pre + this->pip_post, (uint)this->pip_pre + this->pip_post};
Dimension size = {this->head->smallest_x + padding.width, this->head->smallest_y + padding.height};
Dimension fill = {0, 0};
Dimension resize = {this->pip_inter + this->head->smallest_x, this->pip_inter + this->head->smallest_y};