Changeset 107694 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Jan 10, 2025 4:52:48 PM (10 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strtonum.cpp
r107429 r107694 161 161 if (psz[0] == '0') 162 162 { 163 if ( psz[0] == '0' 164 && cchMax > 1 163 if ( cchMax > 1 165 164 && (psz[1] == 'x' || psz[1] == 'X') 166 165 && g_auchDigits[(unsigned char)psz[2]] < 16) … … 170 169 cchMax -= 2; 171 170 } 172 else if ( psz[0] == '0' 173 && g_auchDigits[(unsigned char)psz[1]] < 8) 171 else if (g_auchDigits[(unsigned char)psz[1]] < 8) 174 172 uBase = 8; /* don't skip the zero, in case it's alone. */ 175 173 } … … 461 459 cchMax -= 2; 462 460 } 463 else if ( psz[0] == '0' 464 && g_auchDigits[(unsigned char)psz[1]] < 8) 461 else if (g_auchDigits[(unsigned char)psz[1]] < 8) 465 462 uBase = 8; /* don't skip the zero, in case it's alone. */ 466 463 }
Note:
See TracChangeset
for help on using the changeset viewer.