Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev
2025-05-30 17:08:34 -05:00
committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View File

@@ -83,7 +83,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
public static string FormatInt(int value)
{
if (value <= MaxDecimal && value >= -MaxDecimal)
if (value is <= MaxDecimal and >= (-MaxDecimal))
{
return value.ToString(CultureInfo.InvariantCulture);
}
@@ -93,7 +93,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
public static string FormatUint(uint value)
{
if (value <= MaxDecimal && value >= 0)
if (value is <= MaxDecimal and >= 0)
{
return value.ToString(CultureInfo.InvariantCulture) + "u";
}