VirtualBox

Changeset 99605 in vbox


Ignore:
Timestamp:
May 4, 2023 2:09:35 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157126
Message:

fixed possible narrowing type from 'long unsigned int' to 'unsigned int'

File:
1 edited

Legend:

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

    r99604 r99605  
    18091809                    {
    18101810                        vsdData = aVBoxValues[0];
    1811                         memory = RT_MIN(RT_MAX(vsdData.toUInt64(), MM_RAM_MIN), MM_RAM_MAX);
    1812 
     1811                        memory = RT_MIN((uint64_t)(RT_MAX(vsdData.toUInt64(), (uint64_t)MM_RAM_MIN)), MM_RAM_MAX);
    18131812                    }
    18141813                    //and set in ovf::VirtualSystem in bytes
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