Commit 0566ba9a authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winedbg: Fix dependence on undefined left-shift behavior (scan-build).

parent f3c9fdf8
......@@ -640,7 +640,7 @@ static BOOL be_x86_64_fetch_integer(const struct dbg_lvalue* lvalue, unsigned si
if (!memory_read_value(lvalue, size, ret)) return FALSE;
/* propagate sign information */
if (is_signed && size < 16 && (*ret >> (size * 8 - 1)) != 0)
if (is_signed && size < sizeof(*ret) && (*ret >> (size * 8 - 1)) != 0)
{
ULONGLONG neg = -1;
*ret |= neg << (size * 8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment