Avoid a compiler warning.

This commit is contained in:
Alexandre Julliard 2005-03-04 12:33:34 +00:00
parent 4021f530d7
commit 31c4aa736d
1 changed files with 3 additions and 7 deletions

View File

@ -144,17 +144,13 @@ void memory_examine(const struct dbg_lvalue *lvalue, int count, char format)
ADDRESS addr; ADDRESS addr;
void *linear; void *linear;
if (lvalue->type.id == dbg_itype_none) if (lvalue->type.id == dbg_itype_none) addr = lvalue->addr;
{
addr = lvalue->addr;
linear = memory_to_linear_addr( &addr );
}
else else
{ {
linear = types_extract_as_integer( lvalue );
addr.Mode = AddrModeFlat; addr.Mode = AddrModeFlat;
addr.Offset = (unsigned long)linear; addr.Offset = types_extract_as_integer( lvalue );
} }
linear = memory_to_linear_addr( &addr );
if (format != 'i' && count > 1) if (format != 'i' && count > 1)
{ {