From: Erik Faye-Lund Date: Wed, 15 Apr 2020 20:26:59 +0000 (+0200) Subject: mesa: fixup cast expression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b55b033f7624171d82ae1f79f3d3ad058ae0ac56;p=mesa.git mesa: fixup cast expression This cast-expression was meant to cast the result of the terniary expression, but it just casted the condition expression instead. Let's correct this, to silence a compiler-warning. Reviewed-by: Brian Paul Part-of: --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 140c84de2b1..0dd630c7a3a 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -3793,7 +3793,7 @@ _mesa_print_arrays(struct gl_context *ctx) array->Ptr, _mesa_enum_to_string(array->Format.Type), array->Format.Size, array->Format._ElementSize, binding->Stride, bo ? bo->Name : 0, - (unsigned long) bo ? bo->Size : 0); + (unsigned long)(bo ? bo->Size : 0)); } }