implicit enum conversion in Ternary Operator!!!

 

Dear Members

I am getting warning message "implicit enum conversion" on the following code 

sigDIRatio = (prevRatioDI < currRatioDI) ? (CENUM_TREND)LONG : (prevRatioDI > currRatioDI) ? (CENUM_TREND)SHORT : WRONG_VALUE;

Type casting did not help either. Is there any fix to this warning?

Regards

 
Anil Varma:
sigDIRatio

What type(enum) is "sigDIRatio"?

 
Anil Varma:

Dear Members

I am getting warning message "implicit enum conversion" on the following code 

Type casting did not help either. Is there any fix to this warning?

Regards

You need to cast wrong value as weil.
 
Dominik Egert #:
You need to cast wrong value as weil.

Thanks @Dominik Egert 

I have changed as per your suggestion,  "implicit enum conversion" warning no longer there.

Regards