mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
fix warnings with -Wsign-compare for MP builds
svn path=/trunk/; revision=16443
This commit is contained in:
parent
5979e80363
commit
c75115824f
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue