From: Francesco Ansanelli Date: Tue, 16 Aug 2016 12:38:46 +0000 (+0200) Subject: mesa/st: use llabs instead of abs for long args (v2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=120c9c6380e83e732bd105619d6303498ef4efb7;p=mesa.git mesa/st: use llabs instead of abs for long args (v2) v2: long has 32bit on Windows (Marek) Signed-off-by: Francesco Ansanelli Signed-off-by: Marek Olšák --- diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index dcead27ea36..1c2cfa791cd 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)