Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16952 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0ef40c5e17
commit
4436fae24d
@ -42,7 +42,7 @@ WorkspacesLayer::_GetGrid(int32& columns, int32& rows)
|
|||||||
DesktopSettings settings(Window()->Desktop());
|
DesktopSettings settings(Window()->Desktop());
|
||||||
|
|
||||||
int32 count = settings.WorkspacesCount();
|
int32 count = settings.WorkspacesCount();
|
||||||
int32 squareRoot = sqrt(count);
|
int32 squareRoot = (int32)sqrt(count);
|
||||||
|
|
||||||
rows = 1;
|
rows = 1;
|
||||||
for (int32 i = 2; i <= squareRoot; i++) {
|
for (int32 i = 2; i <= squareRoot; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user