From 08d13355ee9da1e15bf563660609e64c5130a730 Mon Sep 17 00:00:00 2001 From: FICTURE7 Date: Fri, 16 Apr 2021 18:30:46 +0400 Subject: [PATCH] Apply suggestions from code review Address LDj3SNuD's feedback Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> --- ARMeilleure/Common/Counter.cs | 4 ++-- ARMeilleure/Instructions/InstEmitFlowHelper.cs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ARMeilleure/Common/Counter.cs b/ARMeilleure/Common/Counter.cs index 1ceba1762..785722e83 100644 --- a/ARMeilleure/Common/Counter.cs +++ b/ARMeilleure/Common/Counter.cs @@ -40,7 +40,7 @@ namespace ARMeilleure.Common /// Gets a reference to the value of the counter. /// /// instance was disposed - public ref T Value + public ref T Value { get { @@ -49,7 +49,7 @@ namespace ARMeilleure.Common throw new ObjectDisposedException(null); } - return ref _countTable.GetValue(_index); + return ref _countTable.GetValue(_index); } } diff --git a/ARMeilleure/Instructions/InstEmitFlowHelper.cs b/ARMeilleure/Instructions/InstEmitFlowHelper.cs index a0ed5dd4c..f995ffa1f 100644 --- a/ARMeilleure/Instructions/InstEmitFlowHelper.cs +++ b/ARMeilleure/Instructions/InstEmitFlowHelper.cs @@ -218,8 +218,7 @@ namespace ARMeilleure.Instructions { context.StoreToContext(); - Operand fallbackAddr = context.Call( - typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address); + Operand fallbackAddr = context.Call(typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address); EmitNativeCall(context, fallbackAddr, isJump: true); }