Hi, ldc.i4.s pushes a signed byte on the stack. You need to cast the operand to sbyte. Or you can write Convert.ToInt32 if you want a 32 bits integer directly.
Jb On Mon, Nov 24, 2014 at 11:52 PM, BlackSky Blacksky <[email protected]> wrote: > Hi, > > When I have an ldc.i4 instruction I can parse the operand to an int variable > without a problem. > If I try the same with an Ldc.i4.s Instruction it fails. > I cant convert it to an into either. > How can I get the operands value of an ldc.i4.s instruction as integer? > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
