André Hentschel : oleaut32: Reorder some code to make it easier to read and look like the block above.

Alexandre Julliard julliard at winehq.org
Tue Feb 23 11:17:20 CST 2010


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Feb 22 18:52:37 2010 +0100

oleaut32: Reorder some code to make it easier to read and look like the block above.

---

 dlls/oleaut32/varformat.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c
index 370b4f0..9db390d 100644
--- a/dlls/oleaut32/varformat.c
+++ b/dlls/oleaut32/varformat.c
@@ -1264,13 +1264,11 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat,
       /* Exponent format: length of the integral number part is fixed and
          specified by the format. */
       pad = need_int - have_int;
-      if (pad >= 0)
-        exponent -= pad;
-      else
+      exponent -= pad;
+      if (pad < 0)
       {
         have_int = need_int;
         have_frac -= pad;
-        exponent -= pad;
         pad = 0;
       }
     }




More information about the wine-cvs mailing list