Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!mmdf From: mermelstein@inrs-telecom.uquebec.ca (Lois Mermelstein) Newsgroups: comp.sys.amiga Subject: what's wrong with this picture? Message-ID: <13853@louie.udel.EDU> Date: 24 Apr 89 13:09:42 GMT Sender: mmdf@udel.EDU Lines: 26 Ok, I give up. Why does the following (example code for a doubly-linked- list) give the compiler warning "pointer/int conversion"? struct aet { long x, y; float xIncr; struct aet *prev; struct aet *next; }; struct aet *head, *last, *this; head = (struct aet *) malloc(sizeof(struct aet)); /* warning comes ^ here */ (Manx 3.6a, compiling with cc file, linking with ln file -lm -lc [for the floating point numbers]) The main reason I'm asking is that the program keeps guruing (the "bad address" one) in different places, suggesting something in the program is writing on the code. Besides, it bugs me when code stolen straight out of K&R, 2nd ed., produces compiler warnings. Thanks much, Lois Mermelstein mermelstein@tel.inrs.cdn or mermelstein@inrs-telecom.uquebec.ca