mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Use list_empty() instead of comparing list_count() against zero.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8727b9a435
commit
833bfa8812
@ -326,7 +326,7 @@ static bool append_conditional_break(struct hlsl_ctx *ctx, struct list *cond_lis
|
||||
struct hlsl_ir_if *iff;
|
||||
|
||||
/* E.g. "for (i = 0; ; ++i)". */
|
||||
if (!list_count(cond_list))
|
||||
if (list_empty(cond_list))
|
||||
return true;
|
||||
|
||||
condition = node_from_list(cond_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user