Why does the following generate warning:
implicit arithmetic conversion from 'int' to 'unsigned short'
typedef unsigned short uint16_t
typedef uint16_t SystemTime_t
inline static SystemTime_t ElapsedTime(SystemTime_t startTime)
return systemTimeMs - startTime;
it seems to me that all the parameters are clearly defined as 'unsigned short' and there should be no implicit conversions going on?