VirtualBox

Ignore:
Timestamp:
Jan 22, 2009 4:00:00 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41925
Message:

FE/Qt4: Try #1 to fix win64 build (failure with pow/math.h).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r16176 r16179  
    38343834
    38353835    /* Calculate shift from starting position for both variants */
    3836     double length1 = sqrt (pow (var1.x() - aRectangle.x(), 2) +
    3837                            pow (var1.y() - aRectangle.y(), 2));
    3838     double length2 = sqrt (pow (var2.x() - aRectangle.x(), 2) +
    3839                            pow (var2.y() - aRectangle.y(), 2));
     3836    double length1 = sqrt (pow ((double) (var1.x() - aRectangle.x()), (double) 2) +
     3837                           pow ((double) (var1.y() - aRectangle.y()), (double) 2));
     3838    double length2 = sqrt (pow ((double) (var2.x() - aRectangle.x()), (double) 2) +
     3839                           pow ((double) (var2.y() - aRectangle.y()), (double) 2));
    38403840
    38413841    /* Return minimum shifted variant */
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