[ros-diffs] [weiden] 16442: fix warnings with -Wsign-compare and
-Wpointer-arith
weiden at svn.reactos.com
weiden at svn.reactos.com
Wed Jul 6 00:58:17 CEST 2005
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)))
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050706/bde82c33/attachment.html
More information about the Ros-diffs
mailing list