This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Warning C259: '=': different enumeration types

C51: V7.50

When I try to build the following code, I receive Warning C259, complaining about enumeration types :

typedef enum { ZERO, ONE, TWO } Numbers;

void main(void)
{
Numbers e_numbers;

e_numbers = (Numbers) ( ZERO |ONE |TWO );
}