server/token.c -- -Wtype-limits changes

Alexandre Julliard julliard at winehq.org
Wed Jan 9 05:19:36 CST 2008


Gerald Pfeifer <gerald at pfeifer.com> writes:

> diff -u -3 -p -r1.60 token.c
> --- server/token.c	6 Dec 2007 14:27:53 -0000	1.60
> +++ server/token.c	7 Jan 2008 13:57:28 -0000
> @@ -515,8 +515,7 @@ struct token *token_duplicate( struct to
>      struct privilege *privilege;
>      struct group *group;
>  
> -    if ((impersonation_level < SecurityAnonymous) ||
> -        (impersonation_level > SecurityDelegation))
> +    if (impersonation_level > SecurityDelegation)

There's no guarantee that the enum is an unsigned type.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list