mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:48:20 +00:00
winedbg: In print_hex, don't print bits not included in size.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d81e757075
commit
24eb754af6
|
@ -337,7 +337,8 @@ static void dbg_print_hex(DWORD size, ULONGLONG sv)
|
|||
if (!sv)
|
||||
dbg_printf("0");
|
||||
else
|
||||
dbg_printf("%#I64x", sv);
|
||||
/* clear unneeded high bits, esp. sign extension */
|
||||
dbg_printf("%#I64x", sv & (~0LLU >> (64 - 8 * size)));
|
||||
}
|
||||
|
||||
static void print_typed_basic(const struct dbg_lvalue* lvalue)
|
||||
|
|
Loading…
Reference in a new issue