Author: miguel
Date: 2006-10-17 12:32:59 -0400 (Tue, 17 Oct 2006)
New Revision: 66752
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/convert.cs
Log:
2006-10-17 Miguel de Icaza <[EMAIL PROTECTED]>
* convert.cs: Fix typo, fixes the test-535.cs, we were casting to
an int32, but requesting an int64 from the conversion
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2006-10-17 16:01:46 UTC (rev 66751)
+++ trunk/mcs/mcs/ChangeLog 2006-10-17 16:32:59 UTC (rev 66752)
@@ -1,3 +1,7 @@
+2006-10-17 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * convert.cs: Fix typo, fixes the test-535.cs.
+
2006-10-12 Martin Baulig <[EMAIL PROTECTED]>
* anonymous.cs
Modified: trunk/mcs/mcs/convert.cs
===================================================================
--- trunk/mcs/mcs/convert.cs 2006-10-17 16:01:46 UTC (rev 66751)
+++ trunk/mcs/mcs/convert.cs 2006-10-17 16:32:59 UTC (rev 66752)
@@ -1689,9 +1689,10 @@
Expression uint32e = new OperatorCast
(expr, TypeManager.uint32_type, true);
return new ConvCast (uint32e,
TypeManager.sbyte_type, ConvCast.Mode.U4_I2);
}
- if (real_target_type == TypeManager.int32_type)
- return new EmptyCast (new OperatorCast
(expr, TypeManager.uint64_type, true),
+ if (real_target_type == TypeManager.int32_type){
+ return new EmptyCast (new OperatorCast
(expr, TypeManager.uint32_type, true),
TypeManager.int32_type);
+ }
} else if (expr_type == TypeManager.intptr_type){
if (real_target_type ==
TypeManager.uint64_type){
return new EmptyCast (new OperatorCast
(expr, TypeManager.int64_type, true),
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches