VirtualBox

Changeset 73591 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 9, 2018 2:14:15 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124230
Message:

FE/Qt: bugref:6596 Replace predefined values instead of pow (which I shoudl not have used in the first place for integers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic3.cpp

    r73588 r73591  
    4949
    5050/* Other VBox includes: */
     51#include <iprt/cdefs.h>
    5152#include <iprt/path.h>
    52 
    53 /* External includes: */
    54 #include <math.h>
    5553
    5654UIWizardNewVDPage3::UIWizardNewVDPage3(const QString &strDefaultName, const QString &strDefaultPath)
     
    278276        /* Try to create virtual hard drive file: */
    279277        fResult = qobject_cast<UIWizardNewVD*>(wizard())->createVirtualDisk();
    280        /* Unlock finish button: */
     278        /* Unlock finish button: */
    281279        endProcessing();
    282280    }
     
    296294        {
    297295            /* Limit the medium size to 4GB. minus 128 MB for file overhead: */
    298             qulonglong fatLimit = 4 * pow(2,30) - 128 * pow(2, 20);
     296            qulonglong fatLimit = _4G - _128M;
    299297            if (mediumSize() >= fatLimit)
    300298                return false;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette