fix warnings with -Wsign-compare for MP builds Modified: trunk/reactos/ntoskrnl/ex/power.c Modified: trunk/reactos/ntoskrnl/ke/bug.c _____
Modified: trunk/reactos/ntoskrnl/ex/power.c --- trunk/reactos/ntoskrnl/ex/power.c 2005-07-05 22:58:11 UTC (rev 16442) +++ trunk/reactos/ntoskrnl/ex/power.c 2005-07-05 23:15:22 UTC (rev 16443) @@ -63,14 +63,14 @@
HalReturnToFirmware (FIRMWARE_OFF); #else #ifdef CONFIG_SMP - ULONG i; + LONG i; KIRQL OldIrql;
OldIrql = KeRaiseIrqlToDpcLevel(); /* Halt all other processors */ for (i = 0; i < KeNumberProcessors; i++) { - if (i != KeGetCurrentProcessorNumber()) + if (i != (LONG)KeGetCurrentProcessorNumber()) { PKDPC Dpc = ExAllocatePool(NonPagedPool, sizeof(KDPC)); if (Dpc == NULL) _____
Modified: trunk/reactos/ntoskrnl/ke/bug.c --- trunk/reactos/ntoskrnl/ke/bug.c 2005-07-05 22:58:11 UTC (rev 16442) +++ trunk/reactos/ntoskrnl/ke/bug.c 2005-07-05 23:15:22 UTC (rev 16443) @@ -420,11 +420,11 @@
if (!InterlockedDecrement((PLONG)&KeBugCheckCount)) { #ifdef CONFIG_SMP - ULONG i; + LONG i; /* Freeze the other CPUs */ for (i = 0; i < KeNumberProcessors; i++) { - if (i != KeGetCurrentProcessorNumber()) + if (i != (LONG)KeGetCurrentProcessorNumber()) { /* Send the IPI and give them one second to catch up */ KiIpiSendRequest(1 << i, IPI_REQUEST_FREEZE);