VirtualBox

Changeset 41883 in vbox for trunk


Ignore:
Timestamp:
Jun 22, 2012 11:44:18 AM (13 years ago)
Author:
vboxsync
Message:

VBoxManage: parfait fix for mac64 (LONG64/long long != PRInt64/long)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageBandwidthControl.cpp

    r41882 r41883  
    109109    Bstr name(a->argv[2]);
    110110    const char *pszType  = NULL;
    111     LONG64 cMaxBytesPerSec  = INT64_MAX;
     111    int64_t cMaxBytesPerSec = INT64_MAX;
    112112
    113113    int c;
     
    168168    }
    169169   
    170     CHECK_ERROR2_RET(bwCtrl, CreateBandwidthGroup(name.raw(), enmType, cMaxBytesPerSec), RTEXITCODE_FAILURE);
     170    CHECK_ERROR2_RET(bwCtrl, CreateBandwidthGroup(name.raw(), enmType, (LONG64)cMaxBytesPerSec), RTEXITCODE_FAILURE);
    171171
    172172    return RTEXITCODE_SUCCESS;
     
    189189
    190190    Bstr name(a->argv[2]);
    191     LONG64 cMaxBytesPerSec  = INT64_MAX;
     191    int64_t cMaxBytesPerSec = INT64_MAX;
    192192
    193193    int c;
     
    233233        CHECK_ERROR2_RET(bwCtrl, GetBandwidthGroup(name.raw(), bwGroup.asOutParam()), RTEXITCODE_FAILURE);
    234234        if (SUCCEEDED(rc))
    235             CHECK_ERROR2_RET(bwGroup, COMSETTER(MaxBytesPerSec)(cMaxBytesPerSec), RTEXITCODE_FAILURE);
     235            CHECK_ERROR2_RET(bwGroup, COMSETTER(MaxBytesPerSec)((LONG64)cMaxBytesPerSec), RTEXITCODE_FAILURE);
    236236    }
    237237
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