Fix the struct declaration case.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-10-25 02:37:21 -03:00
parent e748ac69c3
commit 23971435ad
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ void class__print(struct class *self)
last_offset = pos->offset;
}
if (last_offset + last_size != self->size) {
if (last_offset != -1 && last_offset + last_size != self->size) {
const size_t hole = self->size - (last_offset + last_size);
printf(" /* %d bytes hole, try to pack */\n", hole);