From c665c3c61945887d6b6f67eb9c906e1dcaa962bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Mon, 22 Feb 2010 18:52:37 +0100 Subject: [PATCH] oleaut32: Reorder some code to make it easier to read and look like the block above. --- dlls/oleaut32/varformat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c index 370b4f03629..9db390dfacb 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; } }