Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16952 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-04-01 15:38:49 +00:00
parent 0ef40c5e17
commit 4436fae24d

View File

@ -42,7 +42,7 @@ WorkspacesLayer::_GetGrid(int32& columns, int32& rows)
DesktopSettings settings(Window()->Desktop());
int32 count = settings.WorkspacesCount();
int32 squareRoot = sqrt(count);
int32 squareRoot = (int32)sqrt(count);
rows = 1;
for (int32 i = 2; i <= squareRoot; i++) {