Ming Jiang

Implicit Conversions error

Discussion created by Ming Jiang on Oct 5, 2006
Latest reply on Oct 10, 2006 by CompilerGuru
we are having an issue which stopped us from compiling our code. The issue involves a pointer to an union and pass it as an argument into a function. here is a simple example:
union A{
  uint 8 one;
  uint8 two;
union A a; // a is an instance of A
void funcB(union A *ptr)
void main(void)
we got an "implicit conversion" error. we are trying to port in our existing code, which works ok on S12 and S16 processor, but not so for coldfire. any ideals?