VirtualBox

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


Ignore:
Timestamp:
Aug 20, 2013 2:14:52 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88226
Message:

Main: warnings

File:
1 edited

Legend:

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

    r44528 r47919  
    175175         * little bit more, i.e. the weight is the sum of the data which
    176176         * needs to be read and written. */
    177         uint64_t uMaxSize = 0;
     177        ULONG uMaxWeight = 0;
    178178        for (size_t e = mtc.chain.size(); e > 0; --e)
    179179        {
    180180            MEDIUMTASK &mt = mtc.chain.at(e - 1);
    181             mt.uWeight += uMaxSize;
     181            mt.uWeight += uMaxWeight;
    182182
    183183            /* Calculate progress data */
     
    187187            /* Save the max size for better weighting of diff image
    188188             * creation. */
    189             uMaxSize = RT_MAX(uMaxSize, mt.uWeight);
     189            uMaxWeight = RT_MAX(uMaxWeight, mt.uWeight);
    190190        }
    191191    }
     
    208208        /* same rule as above: count both the data which needs to
    209209         * be read and written */
    210         sst.uWeight = 2 * (cbSize + _1M - 1) / _1M;
     210        sst.uWeight = (ULONG)(2 * (cbSize + _1M - 1) / _1M);
    211211        llSaveStateFiles.append(sst);
    212212        ++uCount;
     
    290290                mt.uWeight = 0; /* dummy */
    291291            else
    292                 mt.uWeight = (lSize + _1M - 1) / _1M;
     292                mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M);
    293293            mtc.chain.append(mt);
    294294
     
    390390                mt.uIdx    = UINT32_MAX;
    391391                mt.pMedium = pSrcMedium;
    392                 mt.uWeight = (lSize + _1M - 1) / _1M;
     392                mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M);
    393393                mtc.chain.append(mt);
    394394
     
    524524                mt.uIdx    = UINT32_MAX;
    525525                mt.pMedium = pSrcMedium;
    526                 mt.uWeight = (lSize + _1M - 1) / _1M;
     526                mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M);
    527527                mtc.chain.append(mt);
    528528
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