[PATCH vkd3d 5/5] vkd3d-shader/hlsl: Use the modifiers location when validating modifiers on casts.

Giovanni Mascellani gmascellani at codeweavers.com
Tue Aug 31 02:01:52 CDT 2021


Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>

Il 30/08/21 19:21, Zebediah Figura ha scritto:
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
>   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 6a472c10..26ba4695 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-devel mailing list