openbsd-ports/lang/mono/patches/patch-mono_metadata_class_c
2011-03-02 08:37:51 +00:00

14 lines
635 B
Plaintext

$OpenBSD: patch-mono_metadata_class_c,v 1.4 2011/03/02 08:37:51 robert Exp $
--- mono/metadata/class.c.orig Wed Feb 23 20:21:01 2011
+++ mono/metadata/class.c Sun Feb 27 14:15:30 2011
@@ -1721,7 +1721,8 @@ mono_class_layout_fields (MonoClass *class)
field->offset &= ~(align - 1);
}
/*TypeBuilders produce all sort of weird things*/
- g_assert (class->image->dynamic || field->offset > 0);
+ /*can't have this assert on 2.6 since its SRE has much more trouble handling inflated types in SRE context.*/
+ /*g_assert (class->image->dynamic || field->offset > 0);*/
real_size = field->offset + size;
}