VirtualBox

Changeset 93309 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 18, 2022 11:31:45 AM (3 years ago)
Author:
vboxsync
Message:

Main: VC++ 19.2 update 11 build adjustments (lossy floating point conversions). bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r93115 r93309  
    444444            break;
    445445
    446         rc = setProgress((ULONG)(cbWrittenTotal / ((uint64_t)cbSize / 100.0)));
     446        rc = setProgress((ULONG)((double)cbWrittenTotal / (double)cbSize / 100.0));
    447447        if (RT_FAILURE(rc))
    448448            break;
     
    764764            break;
    765765
    766         rc = setProgress((ULONG)(cbWrittenTotal / ((uint64_t)cbSize / 100.0)));
     766        rc = setProgress((ULONG)((double)cbWrittenTotal / (double)cbSize / 100.0));
    767767        if (RT_FAILURE(rc))
    768768            break;
Note: See TracChangeset for help on using the changeset viewer.

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