Hey,

On 1/16/08, Regis <[EMAIL PROTECTED]> wrote:
> Here is a correction to the CilWorker class: the code must accept the
> OpCodes.Ldc_I4_S opcode!
>
>                 public Instruction Create (OpCode opcode, int i)
>                 {
>                         ...
>
>                         if (opcode.OperandType != OperandType.InlineI &&
>                                 >>> opcode.OperandType != 
> OperandType.ShortInlineI) <<< !! to be
> addedd !!
>                                 throw new ArgumentException ("opcode");
>
>                         ...
>                 }

You have to use the (OpCode,byte) overload for that ldc.i4.s.

-- 
Jb Evain  <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to