Search Unity

Unity 4.6.3 iOS Bug

Discussion in 'Multiplayer' started by disturbing, Feb 24, 2015.

  1. disturbing

    disturbing

    Joined:
    Dec 12, 2010
    Posts:
    127
    Hey Unity Forums,

    Just wanted to let you know I posted a bug today for 4.6.3 that relates to some native .NET applications.

    http://fogbugz.unity3d.com/default.asp?674965_2ug9o3r7vtgh7q2s

    More or less, the following bitwise logic does not work on IL2CPP at the moment:

    Code (CSharp):
    1.  
    2.  
    3.         private static int makeInt(byte b3, byte b2, byte b1, byte b0)
    4.         {
    5.             return ((((b3 & 0xff) << 24) |
    6.                      ((b2 & 0xff) << 16) |
    7.                      ((b1 & 0xff) << 8) |
    8.                      ((b0 & 0xff) << 0)));
    9.         }
    Please be wary if you are having weird bugs show up on 4.6.3 iOS IL2CPP - took me about 8 hours to figure this one out today, and want to make sure I save some gray hairs.

    Keep an eye on the bug report posted above when it gets fixed, let's celebrate here.