[PATCH vkd3d v7 2/6] vkd3d-shader/hlsl: Use "false" instead of "0" as a bool immediate.

Giovanni Mascellani gmascellani at codeweavers.com
Wed Nov 17 02:47:25 CST 2021


Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 libs/vkd3d-shader/hlsl_codegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c
index f8b977b0..f5432d22 100644
--- a/libs/vkd3d-shader/hlsl_codegen.c
+++ b/libs/vkd3d-shader/hlsl_codegen.c
@@ -204,7 +204,7 @@ static bool transform_ir(struct hlsl_ctx *ctx, bool (*func)(struct hlsl_ctx *ctx
         struct hlsl_block *block, void *context)
 {
     struct hlsl_ir_node *instr, *next;
-    bool progress = 0;
+    bool progress = false;
 
     LIST_FOR_EACH_ENTRY_SAFE(instr, next, &block->instrs, struct hlsl_ir_node, entry)
     {
-- 
2.33.1




More information about the wine-devel mailing list