From 92c53322a6398f14c5ad75f4e10286c9de21e68f Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Thu, 24 Oct 2024 04:59:30 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- src/MimaSim/MimaSim/Core/Parsing/AST/Nodes/CallNode.cs | 4 ++-- src/MimaSim/MimaSim/MIMA/Font.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MimaSim/MimaSim/Core/Parsing/AST/Nodes/CallNode.cs b/src/MimaSim/MimaSim/Core/Parsing/AST/Nodes/CallNode.cs index 82f8e15..24474e6 100644 --- a/src/MimaSim/MimaSim/Core/Parsing/AST/Nodes/CallNode.cs +++ b/src/MimaSim/MimaSim/Core/Parsing/AST/Nodes/CallNode.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using MimaSim.MIMA.Parsing; @@ -8,7 +8,7 @@ public struct CallNode(AstCallNodeType type, List args) : IAstNode { public List Args { get; set; } = args; - public bool IsEmpty => !Args.Any(); + public bool IsEmpty => Args.Count == 0; public AstCallNodeType Type { get; set; } = type; diff --git a/src/MimaSim/MimaSim/MIMA/Font.cs b/src/MimaSim/MimaSim/MIMA/Font.cs index 184d7dc..0f9a2db 100644 --- a/src/MimaSim/MimaSim/MIMA/Font.cs +++ b/src/MimaSim/MimaSim/MIMA/Font.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using MimaSim.MIMA.Components; @@ -237,7 +237,7 @@ public void DrawChar() { for (var x = 0; x < width; x++) { - if (pixels[y * width + x]) + if (pixels[(y * width) + x]) { CPU.Instance.Display.SetPixel((short)(y + yOffset), (short)(x + xOffset), DisplayColor.Black); }