=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: oleaut32: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Fri Feb 7 10:13:44 CST 2014


Module: wine
Branch: master
Commit: ca1a1d54c0d2bee13926a1edca789c09e0c35512
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ca1a1d54c0d2bee13926a1edca789c09e0c35512

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Feb  6 22:33:37 2014 +0100

oleaut32: Use BOOL type where appropriate.

---

 dlls/oleaut32/vartype.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index d492e7d..672fbcb 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -4494,19 +4494,19 @@ static ULONG VARIANT_Add(ULONG ulLeft, ULONG ulRight, ULONG* pulHigh)
 /* Subtract two unsigned 32 bit values with underflow */
 static ULONG VARIANT_Sub(ULONG ulLeft, ULONG ulRight, ULONG* pulHigh)
 {
-  int invert = 0;
+  BOOL invert = FALSE;
   ULARGE_INTEGER ul64;
 
   ul64.QuadPart = (LONG64)ulLeft - (ULONG64)ulRight;
   if (ulLeft < ulRight)
-    invert = 1;
+    invert = TRUE;
 
   if (ul64.QuadPart > (ULONG64)*pulHigh)
     ul64.QuadPart -= (ULONG64)*pulHigh;
   else
   {
     ul64.QuadPart -= (ULONG64)*pulHigh;
-    invert = 1;
+    invert = TRUE;
   }
   if (invert)
     ul64.u.HighPart = -ul64.u.HighPart ;
@@ -5227,7 +5227,7 @@ static HRESULT VARIANT_DI_div(const VARIANT_DI * dividend, const VARIANT_DI * di
    into the VARIANT_DI and is therefore no longer necessary. Returns S_OK if
    successful, or DISP_E_OVERFLOW if the represented value is too big to fit into
    a DECIMAL. */
-static HRESULT VARIANT_DI_normalize(VARIANT_DI * val, int exponent2, int isDouble)
+static HRESULT VARIANT_DI_normalize(VARIANT_DI * val, int exponent2, BOOL isDouble)
 {
     HRESULT hres = S_OK;
     int exponent5, exponent10;
@@ -5431,7 +5431,7 @@ static HRESULT VARIANT_DI_FromR4(float source, VARIANT_DI * dest)
            compensate. */
         exponent2 -= 23;
 
-        hres = VARIANT_DI_normalize(dest, exponent2, 0);
+        hres = VARIANT_DI_normalize(dest, exponent2, FALSE);
     }
 
     return hres;
@@ -5492,7 +5492,7 @@ static HRESULT VARIANT_DI_FromR8(double source, VARIANT_DI * dest)
            compensate. */
         exponent2 -= 52;
 
-        hres = VARIANT_DI_normalize(dest, exponent2, 1);
+        hres = VARIANT_DI_normalize(dest, exponent2, TRUE);
     }
 
     return hres;




More information about the wine-cvs mailing list