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

keil told me a warning about abs()

Does abs function can not effect on unsigned long type ?

 BOOL bSameTime = (abs(ulData1 - ulData2) > 2) ? FALSE : TRUE;

warning : taking the absolute value of unsigned type 'unsigned long' has no effect.