Michael Stefaniuc : msvcrt: Avoid identical if and else bodies (PVS-Studio ).
Module: wine Branch: master Commit: e67a65c59e7013f22c3a873874e9552deef3b68a URL: http://source.winehq.org/git/wine.git/?a=commit;h=e67a65c59e7013f22c3a873874... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Feb 18 00:03:50 2015 +0100 msvcrt: Avoid identical if and else bodies (PVS-Studio). --- dlls/msvcrt/scanf.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/msvcrt/scanf.h b/dlls/msvcrt/scanf.h index e85f343..9322704 100644 --- a/dlls/msvcrt/scanf.h +++ b/dlls/msvcrt/scanf.h @@ -423,8 +423,7 @@ _FUNCTION_ { st = 1; if (!suppress) { - if (L_prefix) _SET_NUMBER_(double); - else if (l_prefix) _SET_NUMBER_(double); + if (L_prefix || l_prefix) _SET_NUMBER_(double); else _SET_NUMBER_(float); } }
participants (1)
-
Alexandre Julliard