when decompile unsigned int , long or byte ... it decompile its value to signed value

4 posts, 0 answers
  1. Waddah
    Waddah avatar
    2 posts
    Member since:
    Jan 2014

    Posted 09 Jul 2015 Link to this post

    for example :

     

    private uint[] Regs = new uint[5];

    public aaaaa() 

    this.Regs[0] = 65456988798; 
    this.Regs[1] = -271723579; /// error decompile value 
    this.Regs[2] = -1732584194; /// error decompile value 
    this.Regs[3] = 4656546545; 
    this.Regs[4] = -145689734; /// error decompile value

    }

  2. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 14 Jul 2015 Link to this post

    Hi,

    Could you, please, share with us the source code used to compile the assembly that outputs the error? Rather unfortunately, this is the best way to reproduce this problem.

    Thank you in advance.

    Regards,
    Alexander
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Waddah
    Waddah avatar
    2 posts
    Member since:
    Jan 2014

    Posted 14 Jul 2015 Link to this post

    try this simple source code :

            private uint A;
            private void Form1_Load(object sender, EventArgs e)
            {
                A = 4294967295;
            }

    compile it to exe file .

     

    now decompile it ... you will see this ..

     

            private uint A;

            private void Form1_Load(object sender, EventArgs e)
            {
                this.A = -1;
            }​

     

     

  5. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 15 Jul 2015 Link to this post

    Hi,

    Thank you for providing us the code.

    We reproduced the bug and it's now on our list.

    Please, update regularly and stay tuned.

    Regards,
    Alexander
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top