fixed difference in signedness warning in MulDiv()
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 9 Oct 2005 22:30:27 +0000 (22:30 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 9 Oct 2005 22:30:27 +0000 (22:30 +0000)
svn path=/trunk/; revision=18388

reactos/lib/kernel32/misc/muldiv.c

index bbfa302..cdf5f42 100644 (file)
@@ -39,7 +39,7 @@ MulDiv(INT nNumber,
         /* Divide the product to get the quotient and remainder */
         Result.LowPart = RtlEnlargedUnsignedDivide(*(PULARGE_INTEGER)&Result,
                                                    (ULONG)nDenominator,
         /* Divide the product to get the quotient and remainder */
         Result.LowPart = RtlEnlargedUnsignedDivide(*(PULARGE_INTEGER)&Result,
                                                    (ULONG)nDenominator,
-                                                   &Result.HighPart);
+                                                   (PULONG)&Result.HighPart);
  
         /* Do the sign changes */
         if ((LONG)Result.LowPart >= 0)
  
         /* Do the sign changes */
         if ((LONG)Result.LowPart >= 0)