oleaut32: don't check whether a 64 bit number will fit in 64 bits (resend)

Dan Kegel dank at kegel.com
Sun Sep 4 19:00:52 CDT 2011


On Sun, Sep 4, 2011 at 4:58 PM, Dan Kegel <dank at kegel.com> wrote:
> gcc points out that it's silly to check whether a 64 bit number will
> fit in 64 bits:
>
> variant.c: In function ‘VarNumFromParseNum’:
> variant.c:2089: error: logical ‘||’ with non-zero constant will always
> evaluate as true
> variant.c:2089: error: logical ‘&&’ with non-zero constant will always
> evaluate as true
>
> Remove the redundant check to make -Werror happier.

This time with the right patch and subject line.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oleaut32-placate-Wlogical-op.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110904/27d37177/attachment.bin>


More information about the wine-patches mailing list