This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Assignment makes pointer from integer without a cast
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, lordbyronbr at yahoo dot com
- Date: Wed, 20 Mar 2002 09:04:49 -0500 (EST)
- Subject: Re: Assignment makes pointer from integer without a cast
>What do I have to do?!
Remove this undefined cast from your code!
You are assuming that you can take some arbitrary integer and treat
it as an address. As the bus error shows, this does not work on machines
that take alignment seriously!