Author: martin
Date: 2005-03-09 23:31:53 -0500 (Wed, 09 Mar 2005)
New Revision: 41628
Modified:
trunk/mcs/gmcs/ChangeLog
trunk/mcs/gmcs/expression.cs
Log:
2005-03-10 Martin Baulig <[EMAIL PROTECTED]>
* expression.cs
(ArrayAccess.EmitDynamicInitializers): Use `etype.IsValueType'
rather than `etype.IsSubclassOf (TypeManager.value_type)'.
Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog 2005-03-10 04:07:51 UTC (rev 41627)
+++ trunk/mcs/gmcs/ChangeLog 2005-03-10 04:31:53 UTC (rev 41628)
@@ -1,3 +1,9 @@
+2005-03-10 Martin Baulig <[EMAIL PROTECTED]>
+
+ * expression.cs
+ (ArrayAccess.EmitDynamicInitializers): Use `etype.IsValueType'
+ rather than `etype.IsSubclassOf (TypeManager.value_type)'.
+
2005-03-07 Martin Baulig <[EMAIL PROTECTED]>
* generic.cs (Nullable.Unwrap): Implement IMemoryLocation and make
Modified: trunk/mcs/gmcs/expression.cs
===================================================================
--- trunk/mcs/gmcs/expression.cs 2005-03-10 04:07:51 UTC (rev 41627)
+++ trunk/mcs/gmcs/expression.cs 2005-03-10 04:31:53 UTC (rev 41628)
@@ -6706,8 +6706,7 @@
// If we are dealing with a
struct, get the
// address of it, so we can
store it.
//
- if ((dims == 1) &&
- etype.IsSubclassOf
(TypeManager.value_type) &&
+ if ((dims == 1) &&
etype.IsValueType &&
(!TypeManager.IsBuiltinOrEnum (etype) ||
etype ==
TypeManager.decimal_type)) {
if (e is New){
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches