From c897e17c813e1040695c9bc27b9ec9cc15e5e44d Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Fri, 15 Aug 2025 13:41:21 -0500 Subject: [PATCH] vkd3d-shader/hlsl: Ensure yacc tokens are positive. Negative returns from yylex() signal EOF, which is not what we want here. --- libs/vkd3d-shader/hlsl.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/hlsl.l b/libs/vkd3d-shader/hlsl.l index 0cdebb8a6..da9f0d391 100644 --- a/libs/vkd3d-shader/hlsl.l +++ b/libs/vkd3d-shader/hlsl.l @@ -346,7 +346,7 @@ while {return KW_WHILE; } {ANY} {} {ANY} { - return yytext[0]; + return (unsigned char)yytext[0]; } %%