This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Assignment makes pointer from integer without a cast
- From: Lord Byron <lordbyronbr at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 05:16:25 -0800 (PST)
- Subject: Assignment makes pointer from integer without a cast
I am using a function like this:
(...)
short int analyze(long int *id)
{
long int tid;
tid = 2001;
id = tid;
}
The gcc compiler gives a warning: "assignment makes
pointer from integer without a cast", but if I do
this:
*id = tid;
when it's running, it causes a Bus Error
What do I have to do?!
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/