From e1b71a47a0b05362f3d126a0b74e99f97ead855a Mon Sep 17 00:00:00 2001 From: Ben Maurer Date: Thu, 23 Dec 2004 16:48:17 +0000 Subject: [PATCH] 2004-12-23 Ben Maurer * metadata.c (builtin_types): Make this `const'. Makes this get put into the shareable section. (mono_metadata_init): Casts to make gcc happy. svn path=/trunk/mono/; revision=38068 --- mono/metadata/ChangeLog | 6 ++++++ mono/metadata/metadata.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog index ef1330326bf..91c781100ac 100644 --- a/mono/metadata/ChangeLog +++ b/mono/metadata/ChangeLog @@ -1,3 +1,9 @@ +2004-12-23 Ben Maurer + + * metadata.c (builtin_types): Make this `const'. Makes this get + put into the shareable section. + (mono_metadata_init): Casts to make gcc happy. + 2004-12-22 Zoltan Varga * gc.c (mono_gc_init): Add a '\n' to the valgrind warning. diff --git a/mono/metadata/metadata.c b/mono/metadata/metadata.c index 99ae928fa78..bb49e66fa77 100644 --- a/mono/metadata/metadata.c +++ b/mono/metadata/metadata.c @@ -1116,7 +1116,7 @@ mono_metadata_free_array (MonoArrayType *array) * private static * private static literal */ -static MonoType +static const MonoType builtin_types[] = { /* data, attrs, type, nmods, byref, pinned */ {{NULL}, 0, MONO_TYPE_VOID, 0, 0, 0}, @@ -1238,7 +1238,7 @@ mono_metadata_init (void) generic_class_cache = g_hash_table_new (mono_generic_class_hash, mono_generic_class_equal); for (i = 0; i < NBUILTIN_TYPES (); ++i) - g_hash_table_insert (type_cache, &builtin_types [i], &builtin_types [i]); + g_hash_table_insert (type_cache, (gpointer) &builtin_types [i], (gpointer) &builtin_types [i]); } /** -- 2.11.4.GIT