Changeset 17088 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Feb 24, 2009 6:37:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r17087 r17088 37 37 #include <iprt/assert.h> 38 38 #include <iprt/ctype.h> 39 #include <limits.h>40 39 41 40 … … 57 56 { 58 57 Assert(!(paOptions[i].fFlags & ~RTGETOPT_VALID_MASK)); 59 Assert(paOptions[i]. uShort > 0 && paOptions[i].uShort <= (unsigned)INT_MAX);58 Assert(paOptions[i].iShort > 0); 60 59 61 60 bool fShort = *pszArgThis == '-' 62 && (uint32_t)pszArgThis[1] == paOptions[i].uShort 63 && paOptions[i].uShort; 61 && (uint32_t)pszArgThis[1] == paOptions[i].iShort; 64 62 65 63 if ((paOptions[i].fFlags & RTGETOPT_REQ_MASK) != RTGETOPT_REQ_NOTHING) … … 180 178 return VERR_INTERNAL_ERROR; 181 179 } 182 return paOptions[i]. uShort;180 return paOptions[i].iShort; 183 181 } 184 182 } … … 190 188 { 191 189 pValueUnion->pDef = &paOptions[i]; 192 return (int)paOptions[i].uShort;190 return paOptions[i].iShort; 193 191 } 194 192 }
Note:
See TracChangeset
for help on using the changeset viewer.