Module: vkd3d Branch: master Commit: 9519fcb56206511aa1a369936681c50e434afda7 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/9519fcb56206511aa1a369936681c5... Author: Fabian Maurer <dark.shadow4(a)web.de> Date: Sun Dec 11 19:53:24 2022 +0100 vkd3d-shader/hlsl: Fix typo (Coverity). I assume this is a typo, right now it doesn't make sense. Signed-off-by: Fabian Maurer <dark.shadow4(a)web.de> --- 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 f67b5118..bd26228f 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -3140,7 +3140,7 @@ static bool add_method_call(struct hlsl_ctx *ctx, struct list *instrs, struct hl if (!strcmp(name, "Gather") || !offset_dim) { - if (params->args_count < 2 && params->args_count > 3 + !!offset_dim) + if (params->args_count < 2 || params->args_count > 3 + !!offset_dim) { hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_WRONG_PARAMETER_COUNT, "Wrong number of arguments to method '%s': expected from 2 to %u, but got %u.",