if( anEnlargeType == VISU::ColoredPrs3dCache::IMPOSSIBLE )
{
size_t aMb = 1024 * 1024;
- double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+ double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
CORBA::Float aNecessaryMemory = aRequiredMemory - aFreeMemory - anUsedMemory;
SUIT_MessageBox::warning(GetDesktop(theModule),
theRequiredMemory = int( aMemoryUsed + aMemoryNeeded ) + 1;
size_t aMb = 1024 * 1024;
- double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+ double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
anEnlargeType = aMemoryNeeded < aFreeMemory ?
VISU::ColoredPrs3dCache::ENLARGE : VISU::ColoredPrs3dCache::IMPOSSIBLE;
}
return;
size_t aMb = 1024 * 1024;
- double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*aMb)) / double(aMb);
+ double aFreeMemory = double(VISU_PipeLine::GetAvailableMemory(8192*(double)aMb)) / double(aMb);
CORBA::Float aMemoryUsed = GetDeviceMemorySize();
CORBA::Float aMemoryNeeded = theMemorySize - aMemoryUsed;
if( aMemoryNeeded > aFreeMemory )