X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fbasic-vectors.cs;h=a2cf101450e792a1faf5177fdeb7e6b84ad06cbf;hb=446728b335f0492671fc21ce76b27d063dcb7653;hp=3e13c2a327fd47d3e15889194771fcc6553ddc0a;hpb=79219ca718a07c3d4fe82d69b2a94dd1366e0314;p=mono.git diff --git a/mono/mini/basic-vectors.cs b/mono/mini/basic-vectors.cs index 3e13c2a327f..a2cf101450e 100644 --- a/mono/mini/basic-vectors.cs +++ b/mono/mini/basic-vectors.cs @@ -1044,10 +1044,17 @@ public class VectorTests { public static int test_0_vector_t_cast_vector_int32 () { var v1 = new Vector (new long [] { 0x123456789abcdef0L, 0x23456789abcdef01L }); var v = (Vector)v1; - if ((uint)v [0] != 0x9abcdef0 || (uint)v [1] != 0x12345678) - return 1; - if ((uint)v [2] != 0xabcdef01 || (uint)v [3] != 0x23456789) - return 2; + if (BitConverter.IsLittleEndian) { + if ((uint)v [0] != 0x9abcdef0 || (uint)v [1] != 0x12345678) + return 1; + if ((uint)v [2] != 0xabcdef01 || (uint)v [3] != 0x23456789) + return 2; + } else { + if ((uint)v [1] != 0x9abcdef0 || (uint)v [0] != 0x12345678) + return 1; + if ((uint)v [3] != 0xabcdef01 || (uint)v [2] != 0x23456789) + return 2; + } return 0; }