VirtualBox

Changeset 85255 in vbox for trunk/src/VBox/Main/src-server


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

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

File:
1 edited

Legend:

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

    r82968 r85255  
    286286     *       digit.
    287287     */
    288     size_t cch = pszEnd - pszStart;
     288    size_t cch = (size_t)(pszEnd - pszStart);
    289289    if (cch > 0 && cch <= 5) /* Port is up to 5 decimal digits. */
    290290    {
     
    292292        while (pszStart != pszEnd)
    293293        {
    294             uPort = uPort * 10 + *pszStart - '0';
     294            uPort = uPort * 10 + (unsigned)(*pszStart - '0');
    295295            pszStart++;
    296296        }
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