oleaut32: reorder some code to make it easier to read and lookalike the block above

André Hentschel nerv at dawncrow.de
Mon Feb 22 11:52:37 CST 2010


the block above follows the same pattern
---
 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;
       }
     }
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list