mirror of https://github.com/icedland/iced.git
Change enc ex sig from ref -> in
This commit is contained in:
parent
ed8605928a
commit
8c366ba99b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue