compiler bug?
Posted: Sun Dec 14, 2014 7:17 am
Hi all
i've noticed that when i use a struct typedef and define an array , the p[i] operand miss calculates the struct size by 4 bytes...
anyone else had this issue?
typedef struct {
int x ;
int y;
} e_t;
e_t p[N];
p[1].x=1; //will cause p[1].y to be one
i've noticed that when i use a struct typedef and define an array , the p[i] operand miss calculates the struct size by 4 bytes...
anyone else had this issue?
typedef struct {
int x ;
int y;
} e_t;
e_t p[N];
p[1].x=1; //will cause p[1].y to be one