Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.sys.apple2 Subject: Re: orca/c bug Message-ID: <16363@smoke.brl.mil> Date: 8 Jun 91 04:10:49 GMT References: <3728@kluge.fiu.edu> <16345@smoke.brl.mil> <3768@kluge.fiu.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 11 In article <3768@kluge.fiu.edu> acmfiu@serss0.fiu.edu (albert chin) writes: >this was a typo on my part. the program will still not work when you change >the realloc to 'foo = realloc (foo, 10 + 1);' I haven't yet tried your program (after fixing it up), so I don't know whether or not you have uncovered a bug in ORCA/C. However, note that you still need to get realloc() properly declared -- including its argument types -- before invoking it. The int expression is not compatible with the expected type for the second argument, and since the 65816 is a "little endian" architecture, this mismatch could go undetected in many cases.