winedbg: Use dbg_lgint_t as parameter in type_print_hex.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-12-08 14:43:44 +01:00 committed by Alexandre Julliard
parent 03f0659805
commit bbfbd7ac05
1 changed files with 3 additions and 3 deletions

View File

@ -360,13 +360,13 @@ static void dbg_print_longlong(LONGLONG sv, BOOL is_signed)
dbg_printf("%s", ptr);
}
static void dbg_print_hex(DWORD size, ULONGLONG sv)
static void dbg_print_hex(DWORD size, dbg_lgint_t sv)
{
if (!sv)
dbg_printf("0");
else
/* clear unneeded high bits, esp. sign extension */
dbg_printf("%#I64x", sv & (~0LLU >> (64 - 8 * size)));
dbg_printf("%#I64x", sv & (~(dbg_lguint_t)0 >> (8 * (sizeof(dbg_lgint_t) - size))));
}
static void print_typed_basic(const struct dbg_lvalue* lvalue)
@ -543,7 +543,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
switch (format)
{
case 'x':
dbg_print_hex(size, (ULONGLONG)res);
dbg_print_hex(size, res);
return;
case 'd':