Skip to content

Commit

Permalink
2009-04-28 Zoltan Varga <vargaz@gmail.com>
Browse files Browse the repository at this point in the history
	* image.c (mono_image_fixup_vtable): Avoid casting an lvalue. Fixes
	part of #498692.

svn path=/branches/mono-2-4/mono/; revision=132877
  • Loading branch information
vargaz committed Apr 28, 2009
1 parent 6203a27 commit 70a3b23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mono/metadata/ChangeLog
@@ -1,3 +1,8 @@
2009-04-28 Zoltan Varga <vargaz@gmail.com>

* image.c (mono_image_fixup_vtable): Avoid casting an lvalue. Fixes
part of #498692.

2009-04-23 Tom Hindle <tom_hindle@sil.org>

* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
Expand Down
4 changes: 2 additions & 2 deletions mono/metadata/image.c
Expand Up @@ -1252,12 +1252,12 @@ mono_image_fixup_vtable (MonoImage *image)
if (slot_type & VTFIXUP_TYPE_32BIT)
while (slot_count--) {
*((guint32*) slot) = (guint32) mono_marshal_get_vtfixup_ftnptr (image, *((guint32*) slot), slot_type);
((guint32*) slot)++;
slot = ((guint32*) slot) + 1;
}
else if (slot_type & VTFIXUP_TYPE_64BIT)
while (slot_count--) {
*((guint64*) slot) = (guint64) mono_marshal_get_vtfixup_ftnptr (image, *((guint64*) slot), slot_type);
((guint64*) slot)++;
slot = ((guint32*) slot) + 1;
}
else
g_assert_not_reached();
Expand Down

0 comments on commit 70a3b23

Please sign in to comment.