VirtualBox

Changeset 85242 in vbox for trunk


Ignore:
Timestamp:
Jul 11, 2020 11:05:19 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139219
Message:

Main/BandwidthGroupImpl: Sign conversion issues. bugref:9790

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/BandwidthGroupImpl.h

    r82968 r85242  
    5757    const Utf8Str &i_getName() const { return m->bd->mData.strName; }
    5858    BandwidthGroupType_T i_getType() const { return m->bd->mData.enmType; }
    59     LONG64 i_getMaxBytesPerSec() const { return m->bd->mData.cMaxBytesPerSec; }
     59    LONG64 i_getMaxBytesPerSec() const { return (LONG64)m->bd->mData.cMaxBytesPerSec; }
    6060    ULONG i_getReferences() const { return m->bd->cReferences; }
    6161
  • trunk/src/VBox/Main/src-server/BandwidthGroupImpl.cpp

    r82968 r85242  
    8181    m->bd->mData.enmType = aType;
    8282    m->bd->cReferences = 0;
    83     m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;
     83    m->bd->mData.cMaxBytesPerSec = (uint64_t)aMaxBytesPerSec;
    8484
    8585    /* Confirm a successful initialization */
     
    229229    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    230230
    231     *aMaxBytesPerSec = m->bd->mData.cMaxBytesPerSec;
     231    *aMaxBytesPerSec = (LONG64)m->bd->mData.cMaxBytesPerSec;
    232232
    233233    return S_OK;
     
    243243
    244244    m->bd.backup();
    245     m->bd->mData.cMaxBytesPerSec = aMaxBytesPerSec;
     245    m->bd->mData.cMaxBytesPerSec = (uint64_t)aMaxBytesPerSec;
    246246
    247247    /* inform direct session if any. */
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