Branch: Tag:

2000-08-07

2000-08-07 09:47:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

64 bit fix.

Rev: src/mapping.c:1.97

5:   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.96 2000/08/07 09:46:18 grubba Exp $"); + RCSID("$Id: mapping.c,v 1.97 2000/08/07 09:47:47 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
40:         #define MD_KEYPAIRS(MD, HSIZE) \ -  ( (struct keypair *)DO_ALIGN( (long) (((struct mapping_data *)(MD))->hash + HSIZE), ALIGNOF(struct keypair)) ) +  ( (struct keypair *)DO_ALIGN( (ptrdiff_t) (((struct mapping_data *)(MD))->hash + HSIZE), ALIGNOF(struct keypair)) )      #define MAPPING_DATA_SIZE(HSIZE, KEYPAIRS) \    (long)( MD_KEYPAIRS(0, HSIZE) + KEYPAIRS )