mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
nir: Add a do to the do/while in nir_const_value_t_array()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24382>
This commit is contained in:
parent
bb8f143749
commit
0d9254204b
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ typedef union {
|
|||
} nir_const_value;
|
||||
|
||||
#define nir_const_value_to_array(arr, c, components, m) \
|
||||
{ \
|
||||
do { \
|
||||
for (unsigned i = 0; i < components; ++i) \
|
||||
arr[i] = c[i].m; \
|
||||
} while (false)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue