[interp] Implement CEE_RETHROW properly by allocating a separate exception variable...
[mono.git] / mono / mini / unaligned.cs
index 397fbbb92ec4c35d08cc002b0c020f508e8e24ce..4ff899fc9dec21bd325414b3866e8a0f1ff66b0f 100644 (file)
@@ -48,7 +48,8 @@ class Tests {
                int expected = *(int*)ptr;
 
                Intrinsics.UnalignedStobj<int> (ptr + 1, expected);
-               if (Intrinsics.UnalignedLdobj<float> (ptr + 1) != f)
+               /* we can loose some precision due to r4<->r8 conversions */
+               if (Math.Abs (Intrinsics.UnalignedLdobj<float> (ptr + 1) - f) > 0.01f)
                        return 1;
 
                return 0;