Alexandre Julliard : vkd3d-shader: Fix some DWORD/unsigned int pointer mismatches.

Alexandre Julliard julliard at winehq.org
Mon Jan 31 15:49:45 CST 2022


Module: vkd3d
Branch: master
Commit: 2d1fb5ef334a6f373a5e83f537650b84581cb6b6
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=2d1fb5ef334a6f373a5e83f537650b84581cb6b6

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 31 11:51:34 2022 +0100

vkd3d-shader: Fix some DWORD/unsigned int pointer mismatches.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>

---

 libs/vkd3d-shader/hlsl.y | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y
index 9476765..be24a74 100644
--- a/libs/vkd3d-shader/hlsl.y
+++ b/libs/vkd3d-shader/hlsl.y
@@ -1155,7 +1155,7 @@ static struct hlsl_ir_node *add_assignment(struct hlsl_ctx *ctx, struct list *in
     struct hlsl_type *lhs_type = lhs->data_type;
     struct hlsl_ir_store *store;
     struct hlsl_ir_expr *copy;
-    DWORD writemask = 0;
+    unsigned int writemask = 0;
 
     if (assign_op == ASSIGN_OP_SUB)
     {
@@ -2359,7 +2359,7 @@ struct_declaration:
       var_modifiers struct_spec variables_def_optional ';'
         {
             struct hlsl_type *type;
-            DWORD modifiers = $1;
+            unsigned int modifiers = $1;
 
             if (!$3)
             {
@@ -2449,7 +2449,7 @@ field:
       var_modifiers field_type variables_def ';'
         {
             struct hlsl_type *type;
-            DWORD modifiers = $1;
+            unsigned int modifiers = $1;
 
             if (!(type = apply_type_modifiers(ctx, $2, &modifiers, @1)))
                 YYABORT;
@@ -2619,7 +2619,7 @@ parameter:
       input_mods var_modifiers type any_identifier colon_attribute
         {
             struct hlsl_type *type;
-            DWORD modifiers = $2;
+            unsigned int modifiers = $2;
 
             if (!(type = apply_type_modifiers(ctx, $3, &modifiers, @2)))
                 YYABORT;
@@ -2858,7 +2858,7 @@ declaration:
       var_modifiers type variables_def ';'
         {
             struct hlsl_type *type;
-            DWORD modifiers = $1;
+            unsigned int modifiers = $1;
 
             if (!(type = apply_type_modifiers(ctx, $2, &modifiers, @1)))
                 YYABORT;




More information about the wine-cvs mailing list