VirtualBox

Ignore:
Timestamp:
Jan 18, 2022 11:31:09 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149375
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/testcase/tstIntNetR0.cpp

    r93115 r93307  
    325325                             "  iFrame=%u  cb=%'u  c=%'u  %'uKB/s  %'ufps  cLost=%'u \n",
    326326                             &pArgs->Mac, iFrame, cbReceived, iFrame - cLostFrames,
    327                              (unsigned)(cbReceived * 1000000000.0 / 1024 / (pArgs->u64End - pArgs->u64Start)),
    328                              (unsigned)((iFrame - cLostFrames) * 1000000000.0 / (pArgs->u64End - pArgs->u64Start)),
     327                             (unsigned)((double)cbReceived * 1000000000.0 / 1024 / (double)(pArgs->u64End - pArgs->u64Start)),
     328                             (unsigned)((double)(iFrame - cLostFrames) * 1000000000.0 / (double)(pArgs->u64End - pArgs->u64Start)),
    329329                             cLostFrames);
    330330                return VINF_SUCCESS;
     
    514514
    515515        uint64_t u64Elapsed = RT_MAX(Args0.u64End, Args1.u64End) - RT_MIN(Args0.u64Start, Args1.u64Start);
    516         uint64_t u64Speed = (uint64_t)((2 * g_cbTransfer / 1024) / (u64Elapsed / 1000000000.0));
     516        uint64_t u64Speed = (uint64_t)((double)(2 * g_cbTransfer / 1024) / ((double)u64Elapsed / 1000000000.0));
    517517        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
    518518                     "transferred %u bytes in %'RU64 ns (%'RU64 KB/s)\n",
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