Module: wine Branch: master Commit: 39382652a9399574c2ca9c0d69cca60bf55ad28a URL: http://source.winehq.org/git/wine.git/?a=commit;h=39382652a9399574c2ca9c0d69...
Author: Francois Gouget fgouget@free.fr Date: Mon Dec 8 09:27:06 2008 +0100
oleaut32: Remove unneeded casts of zero.
---
dlls/oleaut32/vartype.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index 78abd3f..2ef1510 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -153,7 +153,7 @@ 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 < (src)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) { \