Zebediah Figura : vkd3d-shader/hlsl: Use the modifiers location when validating modifiers on casts.
Alexandre Julliard
julliard at winehq.org
Wed Sep 1 15:43:27 CDT 2021
Module: vkd3d
Branch: master
Commit: 28092bb200952d2b540c114e755f05c4b0f7dee9
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=28092bb200952d2b540c114e755f05c4b0f7dee9
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Aug 30 12:21:26 2021 -0500
vkd3d-shader/hlsl: Use the modifiers location when validating modifiers on casts.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d-shader/hlsl.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y
index 6a472c1..26ba469 100644
--- a/libs/vkd3d-shader/hlsl.y
+++ b/libs/vkd3d-shader/hlsl.y
@@ -2836,7 +2836,7 @@ unary_expr:
if ($2)
{
- hlsl_error(ctx, @3, VKD3D_SHADER_ERROR_HLSL_INVALID_MODIFIER,
+ hlsl_error(ctx, @2, VKD3D_SHADER_ERROR_HLSL_INVALID_MODIFIER,
"Modifiers are not allowed on casts.");
YYABORT;
}
More information about the wine-cvs
mailing list