From: Michael H. <mic...@ju...> - 2001-10-15 05:55:02
|
See regression/tests/structidx.c. Basically in: struct { int a; int b; } fish[10]; ... j = fish[i].b; The indexing into 'fish' is evaluated as a long instead of a int, as in: ptr = _fish + i * 4; j = *(ptr + 2) where the i*4 is evaluated as an unsigned long multiplication (eww). Now for the fun part. The code generated is incorrect in mingw32, but is correct on the ppc. I don't have a Linux/x86 machine to test on. -- Michael |