SRC\file.c:327: error: [#171] invalid type conversion Reason:
Example 1: typedef struct { int member1; double member2; } someType; void func (void) { int a; someType b; b = (someType) a; /* Invalid conversion from int to struct */ } Example 2: typedef union { int member1; double member2; } someType; void func (void) { int a; someType b; b = (int) a; /* Invalid assignment to union */ }
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |