[Mesa-dev] [PATCH] swrast: Mark MAX_GLUINT literal with u suffix.
Brian Paul
brianp at vmware.com
Mon Apr 13 09:00:03 PDT 2015
On 04/11/2015 11:23 AM, Matt Turner wrote:
> Coverity is confused by the "float < int / 2" expression and suggests
> casting MAX_GLUINT to unsigned, which I believe it was supposed to have
> been already.
> ---
> src/mesa/swrast/s_tritemp.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h
> index fb73b2d..3cd1b44 100644
> --- a/src/mesa/swrast/s_tritemp.h
> +++ b/src/mesa/swrast/s_tritemp.h
> @@ -92,7 +92,7 @@
>
>
> #ifndef MAX_GLUINT
> -#define MAX_GLUINT 0xffffffff
> +#define MAX_GLUINT 0xffffffffu
> #endif
>
>
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list