VirtualBox

Changeset 85243 in vbox


Ignore:
Timestamp:
Jul 11, 2020 11:06:35 PM (5 years ago)
Author:
vboxsync
Message:

Main/BandwidthControlImpl.cpp: Signed/unsigned conversion issues. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/BandwidthControlImpl.cpp

    r82968 r85243  
    501501    {
    502502        const settings::BandwidthGroup &gr = *it;
    503         rc = createBandwidthGroup(gr.strName, gr.enmType, gr.cMaxBytesPerSec);
     503        rc = createBandwidthGroup(gr.strName, gr.enmType, (LONG64)gr.cMaxBytesPerSec);
    504504        if (FAILED(rc)) break;
    505505    }
     
    525525        group.strName      = (*it)->i_getName();
    526526        group.enmType      = (*it)->i_getType();
    527         group.cMaxBytesPerSec = (*it)->i_getMaxBytesPerSec();
     527        group.cMaxBytesPerSec = (uint64_t)(*it)->i_getMaxBytesPerSec();
    528528
    529529        data.llBandwidthGroups.push_back(group);
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