Changeset 8279 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Apr 22, 2008 12:13:16 PM (17 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strtonum.cpp
r8245 r8279 289 289 uint64_t u64; 290 290 int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64); 291 if ( rc == VINF_SUCCESS)291 if (RT_SUCCESS(rc)) 292 292 { 293 293 if (u64 & ~0xffffffffULL) … … 322 322 uint64_t u64; 323 323 int rc = RTStrToUInt64Full(pszValue, uBase, &u64); 324 if ( rc == VINF_SUCCESS)324 if (RT_SUCCESS(rc)) 325 325 { 326 326 if (u64 & ~0xffffffffULL) … … 373 373 uint64_t u64; 374 374 int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64); 375 if ( rc == VINF_SUCCESS)375 if (RT_SUCCESS(rc)) 376 376 { 377 377 if (u64 & ~0xffffULL) … … 406 406 uint64_t u64; 407 407 int rc = RTStrToUInt64Full(pszValue, uBase, &u64); 408 if ( rc == VINF_SUCCESS)408 if (RT_SUCCESS(rc)) 409 409 { 410 410 if (u64 & ~0xffffULL) … … 457 457 uint64_t u64; 458 458 int rc = RTStrToUInt64Ex(pszValue, ppszNext, uBase, &u64); 459 if ( rc == VINF_SUCCESS)459 if (RT_SUCCESS(rc)) 460 460 { 461 461 if (u64 & ~0xffULL) … … 490 490 uint64_t u64; 491 491 int rc = RTStrToUInt64Full(pszValue, uBase, &u64); 492 if ( rc == VINF_SUCCESS)492 if (RT_SUCCESS(rc)) 493 493 { 494 494 if (u64 & ~0xffULL) … … 716 716 int64_t i64; 717 717 int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64); 718 if ( rc == VINF_SUCCESS)718 if (RT_SUCCESS(rc)) 719 719 { 720 720 int32_t i32 = (int32_t)i64; … … 749 749 int64_t i64; 750 750 int rc = RTStrToInt64Full(pszValue, uBase, &i64); 751 if ( rc == VINF_SUCCESS)751 if (RT_SUCCESS(rc)) 752 752 { 753 753 int32_t i32 = (int32_t)i64; … … 800 800 int64_t i64; 801 801 int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64); 802 if ( rc == VINF_SUCCESS)802 if (RT_SUCCESS(rc)) 803 803 { 804 804 int16_t i16 = (int16_t)i64; … … 833 833 int64_t i64; 834 834 int rc = RTStrToInt64Full(pszValue, uBase, &i64); 835 if ( rc == VINF_SUCCESS)835 if (RT_SUCCESS(rc)) 836 836 { 837 837 int16_t i16 = (int16_t)i64; … … 884 884 int64_t i64; 885 885 int rc = RTStrToInt64Ex(pszValue, ppszNext, uBase, &i64); 886 if ( rc == VINF_SUCCESS)886 if (RT_SUCCESS(rc)) 887 887 { 888 888 int8_t i8 = (int8_t)i64; … … 917 917 int64_t i64; 918 918 int rc = RTStrToInt64Full(pszValue, uBase, &i64); 919 if ( rc == VINF_SUCCESS)919 if (RT_SUCCESS(rc)) 920 920 { 921 921 int8_t i8 = (int8_t)i64; -
trunk/src/VBox/Runtime/testcase/tstStrToNum.cpp
r8245 r8279 213 213 { "0", 0, VINF_SUCCESS, 0 }, 214 214 { "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 }, 216 217 { "0x", 0, VWRN_TRAILING_CHARS, 0 }, 217 218 { "0x1", 0, VINF_SUCCESS, 1 },
Note:
See TracChangeset
for help on using the changeset viewer.