Subject: Re: making programs 64bit clean
To: None <port-alpha@NetBSD.ORG>
From: David Seifert <email@example.com>
Date: 06/18/1998 12:52:55
> I'm trying to make a pkg 64bit clean, and am running into an error that has me
> stumped. I resorted to typecasting just about everything, and Managed to cut
> the offending code down to one line:
> int i;
> (char **)malloc(i * sizeof(char **));
> which returns:
> warning: cast to pointer from integer of different size
> I've tried making i long, making the args to malloc (size_t), I'm at a
> complete loss here, any help would be appreciated. Thanks.
Do you have a prototype for malloc() ? Otherwise it defaults
to returning int.
Been there, had to add a #include for that.