would using casts fix the problem?
Posted Apr 16, 2008 19:46 UTC (Wed) by
MathFox (subscriber, #6104)
In reply to:
would using casts fix the problem? by roskegg
Parent article:
GCC and pointer overflows
I recall that one programmer asked me why
int main() {
char a[10];
char *aend = a+10;
printf("%ld\n", (int)aend - (int)a);
}
did print something different from 10 on a Cray vector computer...
(
Log in to post comments)