Skip to content

Commit

Permalink
Fix a compiler warning in getSSERegisterOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Apr 14, 2023
1 parent b833538 commit 8566d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbg/stringformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static size_t getSSERegisterOffset(FormatValueType value, size_t elementSize)
{
if(buf[bufptr + 1] >= '0' && buf[bufptr + 1] <= '9' && buf[bufptr + 2] == ']' && buf[bufptr + 3] == '\0') // [xy]mm\d{1,2}\[\d\]
{
int item = buf[bufptr + 1] - '0';
size_t item = buf[bufptr + 1] - '0';
if(buf[0] == 'x' && item >= 0 && item < 16 / elementSize) // xmm
return offsetof(REGDUMP, regcontext.XmmRegisters[index]) + item * elementSize;
else if(buf[0] == 'y' && item >= 0 && item < 32 / elementSize) // ymm
Expand Down

0 comments on commit 8566d7b

Please sign in to comment.