From 4436fae24d6391996c0129936e0db38248481e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 1 Apr 2006 15:38:49 +0000 Subject: [PATCH] Fixed warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16952 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WorkspacesLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/WorkspacesLayer.cpp b/src/servers/app/WorkspacesLayer.cpp index 44be144d6d..e80823bda9 100644 --- a/src/servers/app/WorkspacesLayer.cpp +++ b/src/servers/app/WorkspacesLayer.cpp @@ -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++) {