Apply suggestions from code review

Address LDj3SNuD's feedback

Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>
This commit is contained in:
FICTURE7 2021-04-16 18:30:46 +04:00 committed by GitHub
parent 9c0dbb9c07
commit 08d13355ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -40,7 +40,7 @@ namespace ARMeilleure.Common
/// Gets a reference to the value of the counter. /// Gets a reference to the value of the counter.
/// </summary> /// </summary>
/// <exception cref="ObjectDisposedException"><see cref="Counter{T}"/> instance was disposed</exception> /// <exception cref="ObjectDisposedException"><see cref="Counter{T}"/> instance was disposed</exception>
public ref T Value public ref T Value
{ {
get get
{ {
@ -49,7 +49,7 @@ namespace ARMeilleure.Common
throw new ObjectDisposedException(null); throw new ObjectDisposedException(null);
} }
return ref _countTable.GetValue(_index); return ref _countTable.GetValue(_index);
} }
} }

View file

@ -218,8 +218,7 @@ namespace ARMeilleure.Instructions
{ {
context.StoreToContext(); context.StoreToContext();
Operand fallbackAddr = context.Call( Operand fallbackAddr = context.Call(typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address);
typeof(NativeInterface).GetMethod(nameof(NativeInterface.GetFunctionAddress)), address);
EmitNativeCall(context, fallbackAddr, isJump: true); EmitNativeCall(context, fallbackAddr, isJump: true);
} }