From 91fe708e8fee3c20b8da0327cb92f1d307cf1934 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sat, 17 Jul 2021 09:06:07 +0200 Subject: [PATCH] Fix warnings in ui_item.h --- Source/DiabloUI/ui_item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DiabloUI/ui_item.h b/Source/DiabloUI/ui_item.h index 548078bf3..62ebf7f01 100644 --- a/Source/DiabloUI/ui_item.h +++ b/Source/DiabloUI/ui_item.h @@ -313,7 +313,7 @@ typedef std::vector> vUiListItem; class UiList : public UiItemBase { public: UiList(const vUiListItem &vItems, Sint16 x, Sint16 y, Uint16 item_width, Uint16 item_height, int flags = 0) - : UiItemBase(x, y, item_width, item_height * vItems.size(), flags) + : UiItemBase(x, y, item_width, static_cast(item_height * vItems.size()), flags) { m_type = UI_LIST; for (auto &item : vItems)