[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

devchk makes assumptions on sizeof void*



Take iconv_h.c for example:

int iconv_h()
{
int cnt=0;
CheckTypeSize(iconv_t,4)
printf("%d tests in iconv.h\n",cnt);
return cnt;
}

This needs to be something more like:

int iconv_h()
{
int cnt=0;
CheckTypeSize(iconv_t,sizeof(void *))
printf("%d tests in iconv.h\n",cnt);
return cnt;
}

as iconv_t is 4 bytes on 32 bit platforms and 8 bytes on 64 bit
platforms.

Cheers,

Matt



Reply to: