[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:37:11 CST 2016


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

Sergey Isakov <isakov-sl at bk.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |isakov-sl at bk.ru

--- Comment #2 from Sergey Isakov <isakov-sl at bk.ru> ---
This is wrong programming style to check if enum type variable have a value out
of enum range.
For my mind the check must be at the function call and not inside the function.

Yes, the expression will never be < 0, this check is redundant.

-- 
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