X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fpedump.c;h=b52f5d79dbcc50893b9980dadc5a27b7f3bf29e0;hb=2895b137c8cf2d559e0ddbd77ff37b6d799ad04d;hp=eec1b6b9ef6c19b59daddbff10e714a574f2df8a;hpb=699e59742843044f6efa1726b7cb64f19d909e64;p=mono.git diff --git a/mono/metadata/pedump.c b/mono/metadata/pedump.c index eec1b6b9ef6..b52f5d79dbc 100644 --- a/mono/metadata/pedump.c +++ b/mono/metadata/pedump.c @@ -13,7 +13,6 @@ #include "image.h" #include #include "cil-coff.h" -#include "private.h" #include "mono-endian.h" #include "verify.h" #include @@ -258,7 +257,7 @@ dsh (const char *label, MonoImage *meta, MonoStreamHeader *sh) { printf ("%s: 0x%08x - 0x%08x [%d == 0x%08x]\n", label, - sh->data - meta->raw_metadata, sh->data + sh->size - meta->raw_metadata, + (int)(sh->data - meta->raw_metadata), (int)(sh->data + sh->size - meta->raw_metadata), sh->size, sh->size); } @@ -281,7 +280,7 @@ dump_metadata (MonoImage *meta) dump_metadata_ptrs (meta); printf ("Rows:\n"); - for (table = 0; table < 64; table++){ + for (table = 0; table < MONO_TABLE_NUM; table++){ if (meta->tables [table].rows == 0) continue; printf ("Table %s: %d records (%d bytes, at %p)\n",