VirtualBox

Changeset 25323 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Dec 11, 2009 12:27:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55902
Message:

iprt/getopt.h/cpp: Made the uIndex 32-bit instead of 64-bit as we don't need 64-bit and it only causes lots of warnings when compiling VBoxManage with MSC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r24825 r25323  
    401401     */
    402402    pState->pDef = NULL;
    403     pState->uIndex = UINT64_MAX;
     403    pState->uIndex = UINT32_MAX;
    404404
    405405    /*
     
    512512                        return VERR_GETOPT_INDEX_MISSING;
    513513
    514                     uint64_t uIndex;
     514                    uint32_t uIndex;
    515515                    char *pszRet = NULL;
    516                     int rc = RTStrToUInt64Ex(&pszArgThis[cchLong], &pszRet, 10, &uIndex);
     516                    int rc = RTStrToUInt32Ex(&pszArgThis[cchLong], &pszRet, 10, &uIndex);
    517517                    if (rc == VWRN_TRAILING_CHARS)
    518518                    {
     
    584584                return VERR_GETOPT_INDEX_MISSING;
    585585
    586             uint64_t uIndex;
     586            uint32_t uIndex;
    587587            char *pszRet = NULL;
    588             if (RTStrToUInt64Full(&pszArgThis[cchLong], 10, &uIndex) == VINF_SUCCESS)
     588            if (RTStrToUInt32Full(&pszArgThis[cchLong], 10, &uIndex) == VINF_SUCCESS)
    589589                pState->uIndex = uIndex;
    590590            else
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