fix warnings with -Wsign-compare and -Wpointer-arith
Modified: trunk/reactos/hal/halx86/mp/ioapic.c
Modified: trunk/reactos/hal/halx86/mp/mpconfig.c
_____
Modified: trunk/reactos/hal/halx86/mp/ioapic.c
--- trunk/reactos/hal/halx86/mp/ioapic.c 2005-07-05 22:35:29 UTC
(rev 16441)
+++ trunk/reactos/hal/halx86/mp/ioapic.c 2005-07-05 22:58:11 UTC
(rev 16442)
@@ -10,8 +10,8 @@
/* INCLUDES
*****************************************************************/
#include <hal.h>
-#define NDEBUG
-#include <debug.h>
+#define NDEBUG
+#include <debug.h>
/* GLOBALS
*****************************************************************/
@@ -319,7 +319,7 @@
entry.dest.logical.logical_dest = 0;
idx = IOAPICGetIrqEntry(apic,pin,INT_VECTORED);
- if (idx == -1)
+ if (idx == (ULONG)-1)
{
if (first_notcon)
{
_____
Modified: trunk/reactos/hal/halx86/mp/mpconfig.c
--- trunk/reactos/hal/halx86/mp/mpconfig.c 2005-07-05 22:35:29 UTC
(rev 16441)
+++ trunk/reactos/hal/halx86/mp/mpconfig.c 2005-07-05 22:58:11 UTC
(rev 16442)
@@ -10,8 +10,8 @@
/* INCLUDES
*****************************************************************/
#include <hal.h>
-#define NDEBUG
-#include <debug.h>
+#define NDEBUG
+#include <debug.h>
/* GLOBALS
******************************************************************/
@@ -302,7 +302,7 @@
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)))
{
Show replies by date