fix warnings with -Wsign-compare and -Wpointer-arith

svn path=/trunk/; revision=16442
This commit is contained in:
Thomas Bluemel 2005-07-05 22:58:11 +00:00
parent cc6ffdce48
commit 5979e80363
2 changed files with 6 additions and 6 deletions

View file

@ -10,8 +10,8 @@
/* INCLUDES *****************************************************************/
#include <hal.h>
#define NDEBUG
#include <debug.h>
#define NDEBUG
#include <debug.h>
/* GLOBALS *****************************************************************/
@ -319,7 +319,7 @@ IOAPICSetupIrqs(VOID)
entry.dest.logical.logical_dest = 0;
idx = IOAPICGetIrqEntry(apic,pin,INT_VECTORED);
if (idx == -1)
if (idx == (ULONG)-1)
{
if (first_notcon)
{

View file

@ -10,8 +10,8 @@
/* INCLUDES *****************************************************************/
#include <hal.h>
#define NDEBUG
#include <debug.h>
#define NDEBUG
#include <debug.h>
/* GLOBALS ******************************************************************/
@ -302,7 +302,7 @@ HaliReadMPConfigTable(PMP_CONFIGURATION_TABLE Table)
DPRINT("APIC at: %08x\n", Table->LocalAPICAddress);
Entry = (PUCHAR)((PVOID)Table + sizeof(MP_CONFIGURATION_TABLE));
Entry = (PUCHAR)((ULONG_PTR)Table + sizeof(MP_CONFIGURATION_TABLE));
Count = 0;
while (Count < (Table->Length - sizeof(MP_CONFIGURATION_TABLE)))
{