* ILParser.jay: Fix the float32(<long>) case in the previous change.
svn path=/trunk/mcs/; revision=153543
+2010-03-14 Zoltan Varga <vargaz@gmail.com>
+
+ * ILParser.jay: Fix the float32(<long>) case in the previous change.
+
2010-03-14 Zoltan Varga <vargaz@gmail.com>
* ILParser.jay: Fix support for hex float literals on big-endian platforms.
{\r
long l = (long) $3;\r
byte[] intb = BitConverter.GetBytes (l);\r
- $$ = (double) BitConverter.ToSingle (intb, 0);\r
+ $$ = (double) BitConverter.ToSingle (intb, BitConverter.IsLittleEndian ? 0 : 4);\r
}\r
| K_FLOAT64 OPEN_PARENS INT64 CLOSE_PARENS\r
{\r