From b55b033f7624171d82ae1f79f3d3ad058ae0ac56 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 15 Apr 2020 22:26:59 +0200 Subject: [PATCH] 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: --- src/mesa/main/varray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.30.2