From 1010f6b7a1ee0aa1612bd88ddd96acb2d79794ac Mon Sep 17 00:00:00 2001 From: Michael Gilbert Date: Wed, 6 Jul 2022 01:44:32 +0100 Subject: [PATCH] fix misleading-indentation warnings Gbp-Pq: Topic warnings Gbp-Pq: Name misleading-indentation.patch --- dlls/oleaut32/vartype.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index 0c6249d..0246162 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -149,15 +149,27 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut, /* Compiler cast where input cannot be negative */ #define NEGTST(dest, src, func) RETTYP _##func(src in, dest* out) { \ - if (in < 0) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in < 0) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* Compiler cast where input cannot be > some number */ #define POSTST(dest, src, func, tst) RETTYP _##func(src in, dest* out) { \ - if (in > (dest)tst) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in > (dest)tst) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* Compiler cast where input cannot be < some number or >= some other number */ #define BOTHTST(dest, src, func, lo, hi) RETTYP _##func(src in, dest* out) { \ - if (in < (dest)lo || in > hi) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in < (dest)lo || in > hi) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* I1 */ POSTST(signed char, BYTE, VarI1FromUI1, I1_MAX) -- 2.30.2