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++) {