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

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2019-09-11 21:05:15 -06:00 committed by Alexandre Julliard
parent f3c9fdf852
commit 0566ba9a58
1 changed files with 1 additions and 1 deletions

View File

@ -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; if (!memory_read_value(lvalue, size, ret)) return FALSE;
/* propagate sign information */ /* 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; ULONGLONG neg = -1;
*ret |= neg << (size * 8); *ret |= neg << (size * 8);