On Tue, Apr 6, 2010 at 9:05 PM, Ludwig Mises <ludwigmi...@gmail.com> wrote: > The following code exits cleanly (exit status 0) on i386, but on macppc exits 4: > s = (char *) malloc(st.st_size);
If you didn't have bogus casts in your code, the compiler could tell you what's wrong with it.