Hi
There is an issue with chVTIsTimeWithinX function, when CH_CFG_ST_RESOLUTION is set to 16 on 32-bit machine.
Adding casts fixes the problem. Checked with GCC, I don't know if other compilers have typeof.
return (bool)((typeof(systime_t))(curr - start) < (typeof(systime_t))(end - start));
Hi,
Typeof is a GCC extension, we cannot use it in the portable code. Wouldn't a normal cast suffice there?
Giovanni
Last edit: Giovanni Di Sirio 2015-10-10
Well then we can use just (systime_t) cast.