BAlert: Add cast to appease GCC2.

This commit is contained in:
Augustin Cavalier
2020-07-04 19:35:20 -04:00
parent 9a0cae9d28
commit 981f67b9c8
+1 -1
View File
@@ -585,7 +585,7 @@ BAlert::_CreateTypeIcon()
return NULL; return NULL;
} }
int32 iconSize = 32 * icon_layout_scale(); int32 iconSize = (int32)(32 * icon_layout_scale());
// Allocate the icon bitmap // Allocate the icon bitmap
icon = new(std::nothrow) BBitmap(BRect(0, 0, iconSize - 1, iconSize - 1), icon = new(std::nothrow) BBitmap(BRect(0, 0, iconSize - 1, iconSize - 1),
0, B_RGBA32); 0, B_RGBA32);