Fixed compilation warning
This commit is contained in:
parent
54fb3b769a
commit
5000ad2a55
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: dbg_main.cc,v 1.74 2006-06-22 19:53:58 sshwarts Exp $
|
||||
// $Id: dbg_main.cc,v 1.75 2006-08-22 19:07:50 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -3414,7 +3414,7 @@ Bit32u bx_dbg_get_laddr(Bit16u sel, Bit32u ofs)
|
||||
Bit32u desc_base;
|
||||
if (selector.ti) {
|
||||
// LDT
|
||||
if ((selector.index*8 + 7) > BX_CPU(dbg_cpu)->ldtr.cache.u.ldt.limit) {
|
||||
if (((Bit32u)selector.index*8 + 7) > BX_CPU(dbg_cpu)->ldtr.cache.u.ldt.limit) {
|
||||
dbg_printf("ERROR: selector (%04x) > GDT size limit\n", selector.index*8);
|
||||
return 0;
|
||||
}
|
||||
@ -3422,7 +3422,7 @@ Bit32u bx_dbg_get_laddr(Bit16u sel, Bit32u ofs)
|
||||
}
|
||||
else {
|
||||
// GDT
|
||||
if ((selector.index*8 + 7) > BX_CPU(dbg_cpu)->gdtr.limit) {
|
||||
if (((Bit32u)selector.index*8 + 7) > BX_CPU(dbg_cpu)->gdtr.limit) {
|
||||
dbg_printf("ERROR: selector (%04x) > GDT size limit\n", selector.index*8);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user