2003-09-17 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection.Emit / ILGenerator.cs
index 708aaf5867e097f564e8381d5a6b86cbc8c13df9..68112837355f3ed5cee269efe76134a0d8eca432 100644 (file)
@@ -408,9 +408,7 @@ namespace System.Reflection.Emit {
                
                public virtual void Emit (OpCode opcode, double val)
                {
-                       unsafe {
-                               Double.AssertEndianity (&val);
-                       }
+                       Double.AssertEndianity (out val);
 
                        byte[] s = System.BitConverter.GetBytes (val);
                        make_room (10);