[Mesa-dev] [PATCH] mesa/st: use llabs instead of abs for long args (v2)

Marek Olšák maraeo at gmail.com
Wed Aug 17 12:19:58 UTC 2016


Pushed, thanks.

Marek

On Tue, Aug 16, 2016 at 2:38 PM, Francesco Ansanelli <francians at gmail.com>
wrote:

> v2: long has 32bit on Windows (Marek)
> Signed-off-by: Francesco Ansanelli <francians at gmail.com>
> ---
>  src/mesa/state_tracker/st_atom_array.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_array.c
> b/src/mesa/state_tracker/st_atom_array.c
> index dcead27..1c2cfa7 100644
> --- a/src/mesa/state_tracker/st_atom_array.c
> +++ b/src/mesa/state_tracker/st_atom_array.c
> @@ -363,7 +363,7 @@ is_interleaved_arrays(const struct st_vertex_program
> *vp,
>           if (bufObj != firstBufObj)
>              return GL_FALSE; /* arrays in different VBOs */
>
> -         if (abs(array->Ptr - firstPtr) > firstStride)
> +         if (llabs(array->Ptr - firstPtr) > firstStride)
>              return GL_FALSE; /* arrays start too far apart */
>
>           if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer)
> --
> 1.7.9.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160817/b5219a3a/attachment.html>


More information about the mesa-dev mailing list