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]; } %%