[Bug 40136] directx.c:4425:5: warning: comparison of unsigned expression < 0 is always false

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Feb 15 05:48:09 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=40136

--- Comment #3 from Nikolay Sivov <bunglehead at gmail.com> ---
Why is that wrong? Function validates its argument, which can be anything.
Whether enum integer type is signed or not is compiler specific, for gcc and
this particular enum it will be unsigned int most likely, so more reliable
check would be to use (unsigned int)multisample_type >
WINED3D_MULTISAMPLE_16_SAMPLES.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list