VirtualBox

Changeset 10170

Show
Ignore:
Timestamp:
07/03/08 21:17:07 (2 months ago)
Author:
vboxsync
Message:

warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Disassembler/DisasmReg.cpp

    r10016 r10170  
    407407DISDECL(int) DISFetchRegSeg(PCCPUMCTXCORE pCtx, DIS_SELREG sel, RTSEL *pVal) 
    408408{ 
    409     AssertReturn(sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
     409    AssertReturn((unsigned)sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
    410410 
    411411    AssertCompile(sizeof(uint16_t) == sizeof(RTSEL)); 
     
    420420DISDECL(int) DISFetchRegSegEx(PCCPUMCTXCORE pCtx, DIS_SELREG sel, RTSEL *pVal, CPUMSELREGHID **ppSelHidReg) 
    421421{ 
    422     AssertReturn(sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
     422    AssertReturn((unsigned)sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
    423423 
    424424    AssertCompile(sizeof(uint16_t) == sizeof(RTSEL)); 
     
    482482DISDECL(int) DISWriteRegSeg(PCPUMCTXCORE pCtx, DIS_SELREG sel, RTSEL val) 
    483483{ 
    484     AssertReturn(sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
     484    AssertReturn((unsigned)sel < ELEMENTS(g_aRegSegIndex), VERR_INVALID_PARAMETER); 
    485485 
    486486    AssertCompile(sizeof(uint16_t) == sizeof(RTSEL)); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy