mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07: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:
committed by
Alexandre Julliard
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;
|
struct hlsl_ir_if *iff;
|
||||||
|
|
||||||
/* E.g. "for (i = 0; ; ++i)". */
|
/* E.g. "for (i = 0; ; ++i)". */
|
||||||
if (!list_count(cond_list))
|
if (list_empty(cond_list))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
condition = node_from_list(cond_list);
|
condition = node_from_list(cond_list);
|
||||||
|
|||||||
Reference in New Issue
Block a user