Author: weiden Date: Thu Aug 31 01:47:38 2006 New Revision: 23829
URL: http://svn.reactos.org/svn/reactos?rev=23829&view=rev Log: Fix difference in signedness warnings
Modified: trunk/reactos/ntoskrnl/ke/bug.c trunk/reactos/ntoskrnl/vdm/vdmexec.c
Modified: trunk/reactos/ntoskrnl/ke/bug.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/bug.c?rev=23829... ============================================================================== --- trunk/reactos/ntoskrnl/ke/bug.c (original) +++ trunk/reactos/ntoskrnl/ke/bug.c Thu Aug 31 01:47:38 2006 @@ -543,7 +543,7 @@
/* Save the IRQL and set hardware trigger */ Prcb->DebuggerSavedIRQL = KeGetCurrentIrql(); - InterlockedIncrement(&KiHardwareTrigger); + InterlockedIncrement((PLONG)&KiHardwareTrigger);
/* Capture the CPU Context */ RtlCaptureContext(&Prcb->ProcessorState.ContextFrame); @@ -857,7 +857,7 @@ }
/* Avoid recursion */ - if (!InterlockedDecrement(&KeBugCheckCount)) + if (!InterlockedDecrement((PLONG)&KeBugCheckCount)) { /* Set CPU that is bug checking now */ KeBugCheckOwner = Prcb->Number;
Modified: trunk/reactos/ntoskrnl/vdm/vdmexec.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/vdm/vdmexec.c?rev=... ============================================================================== --- trunk/reactos/ntoskrnl/vdm/vdmexec.c (original) +++ trunk/reactos/ntoskrnl/vdm/vdmexec.c Thu Aug 31 01:47:38 2006 @@ -212,12 +212,12 @@ if (VdmTib->VdmContext.EFlags & EFLAGS_INTERRUPT_MASK) { /* Enable them as well */ - InterlockedOr(VdmState, EFLAGS_INTERRUPT_MASK); + InterlockedOr((PLONG)VdmState, EFLAGS_INTERRUPT_MASK); } else { /* Disable them */ - InterlockedAnd(VdmState, ~EFLAGS_INTERRUPT_MASK); + InterlockedAnd((PLONG)VdmState, ~EFLAGS_INTERRUPT_MASK); }
/* Enable the interrupt flag */