fix warnings with -Wsign-compare for MP builds

svn path=/trunk/; revision=16443
This commit is contained in:
Thomas Bluemel 2005-07-05 23:15:22 +00:00
parent 5979e80363
commit c75115824f
2 changed files with 4 additions and 4 deletions

View file

@ -63,14 +63,14 @@ ShutdownThreadMain(PVOID Context)
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)

View file

@ -420,11 +420,11 @@ KeBugCheckWithTf(ULONG BugCheckCode,
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);