Change enc ex sig from ref -> in

This commit is contained in:
de4dot 2018-10-05 18:59:01 +02:00
parent ed8605928a
commit 8c366ba99b
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ namespace Iced.Intel {
/// <returns></returns>
public uint Encode(ref Instruction instruction, ulong rip) {
if (!TryEncode(ref instruction, rip, out uint result, out var errorMessage))
throw new EncoderException(errorMessage, ref instruction);
throw new EncoderException(errorMessage, instruction);
return result;
}

View File

@ -37,7 +37,7 @@ namespace Iced.Intel {
/// </summary>
/// <param name="message">Exception message</param>
/// <param name="instruction">Instruction</param>
public EncoderException(string message, ref Instruction instruction) : base(message) => Instruction = instruction;
public EncoderException(string message, in Instruction instruction) : base(message) => Instruction = instruction;
/// <summary>
/// Constructor