From 981f67b9c8d84cf200e4f9b9bf4af3f95414ffa7 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 4 Jul 2020 19:35:20 -0400 Subject: [PATCH] BAlert: Add cast to appease GCC2. --- src/kits/interface/Alert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 7658eba2be..464d10aa5d 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -585,7 +585,7 @@ BAlert::_CreateTypeIcon() return NULL; } - int32 iconSize = 32 * icon_layout_scale(); + int32 iconSize = (int32)(32 * icon_layout_scale()); // Allocate the icon bitmap icon = new(std::nothrow) BBitmap(BRect(0, 0, iconSize - 1, iconSize - 1), 0, B_RGBA32);