Assignment makes pointer from integer without a cast
Lord Byron
lordbyronbr@yahoo.com
Wed Mar 20 05:25:00 GMT 2002
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/
More information about the Gcc
mailing list