diff options
author | Erik Faye-Lund <[email protected]> | 2020-04-15 22:26:59 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-16 14:48:40 +0000 |
commit | b55b033f7624171d82ae1f79f3d3ad058ae0ac56 (patch) | |
tree | 0fc75935dd223324bc5dbb8229169490f68de9b2 /src | |
parent | c55fc3543537fdc7b402584a076eb87d258b4c51 (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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/varray.c | 2 |
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)); } } |