summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2020-04-15 22:26:59 +0200
committerMarge Bot <eric+marge@anholt.net>2020-04-16 14:48:40 +0000
commitb55b033f7624171d82ae1f79f3d3ad058ae0ac56 (patch)
tree0fc75935dd223324bc5dbb8229169490f68de9b2 /src/mesa
parentc55fc3543537fdc7b402584a076eb87d258b4c51 (diff)
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 <brianp@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/varray.c2
1 files changed, 1 insertions, 1 deletions
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));
}
}