VirtualBox

Changeset 8279 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 22, 2008 12:13:16 PM (17 years ago)
Author:
vboxsync
Message:

Give VWRN_NUMBER_TOO_BIG highest priority among the warnings.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strtonum.cpp

    r8245 r8279  
    289289    uint64_t u64;
    290290    int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64);
    291     if (rc == VINF_SUCCESS)
     291    if (RT_SUCCESS(rc))
    292292    {
    293293        if (u64 & ~0xffffffffULL)
     
    322322    uint64_t u64;
    323323    int rc = RTStrToUInt64Full(pszValue, uBase, &u64);
    324     if (rc == VINF_SUCCESS)
     324    if (RT_SUCCESS(rc))
    325325    {
    326326        if (u64 & ~0xffffffffULL)
     
    373373    uint64_t u64;
    374374    int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64);
    375     if (rc == VINF_SUCCESS)
     375    if (RT_SUCCESS(rc))
    376376    {
    377377        if (u64 & ~0xffffULL)
     
    406406    uint64_t u64;
    407407    int rc = RTStrToUInt64Full(pszValue, uBase, &u64);
    408     if (rc == VINF_SUCCESS)
     408    if (RT_SUCCESS(rc))
    409409    {
    410410        if (u64 & ~0xffffULL)
     
    457457    uint64_t u64;
    458458    int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64);
    459     if (rc == VINF_SUCCESS)
     459    if (RT_SUCCESS(rc))
    460460    {
    461461        if (u64 & ~0xffULL)
     
    490490    uint64_t u64;
    491491    int rc = RTStrToUInt64Full(pszValue, uBase, &u64);
    492     if (rc == VINF_SUCCESS)
     492    if (RT_SUCCESS(rc))
    493493    {
    494494        if (u64 & ~0xffULL)
     
    716716    int64_t i64;
    717717    int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64);
    718     if (rc == VINF_SUCCESS)
     718    if (RT_SUCCESS(rc))
    719719    {
    720720        int32_t i32 = (int32_t)i64;
     
    749749    int64_t i64;
    750750    int rc = RTStrToInt64Full(pszValue, uBase, &i64);
    751     if (rc == VINF_SUCCESS)
     751    if (RT_SUCCESS(rc))
    752752    {
    753753        int32_t i32 = (int32_t)i64;
     
    800800    int64_t i64;
    801801    int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64);
    802     if (rc == VINF_SUCCESS)
     802    if (RT_SUCCESS(rc))
    803803    {
    804804        int16_t i16 = (int16_t)i64;
     
    833833    int64_t i64;
    834834    int rc = RTStrToInt64Full(pszValue, uBase, &i64);
    835     if (rc == VINF_SUCCESS)
     835    if (RT_SUCCESS(rc))
    836836    {
    837837        int16_t i16 = (int16_t)i64;
     
    884884    int64_t i64;
    885885    int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64);
    886     if (rc == VINF_SUCCESS)
     886    if (RT_SUCCESS(rc))
    887887    {
    888888        int8_t i8 = (int8_t)i64;
     
    917917    int64_t i64;
    918918    int rc = RTStrToInt64Full(pszValue, uBase, &i64);
    919     if (rc == VINF_SUCCESS)
     919    if (RT_SUCCESS(rc))
    920920    {
    921921        int8_t i8 = (int8_t)i64;
  • trunk/src/VBox/Runtime/testcase/tstStrToNum.cpp

    r8245 r8279  
    213213        { "0",                      0,  VINF_SUCCESS,           0 },
    214214        { "1",                      0,  VINF_SUCCESS,           1 },
    215         { "-1",                     0,  VWRN_NEGATIVE_UNSIGNED, ~0 },
     215        /// @todo { "-1",                     0,  VWRN_NEGATIVE_UNSIGNED, ~0 }, - no longer true. bad idea?
     216        { "-1",                     0,  VWRN_NUMBER_TOO_BIG,    ~0 },
    216217        { "0x",                     0,  VWRN_TRAILING_CHARS,    0 },
    217218        { "0x1",                    0,  VINF_SUCCESS,           1 },
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