Size of cc_delay variables
petrpulc opened this issue · comments
Please prove me wrong, but if unsigned char is used as a type for cc_delay(), value of 200 is passed to the function and this value is multiplied by 50 in the function and stored to the same data type (unsigned char), the value inevitably overflows (to value of 16).
Is this a bug or a feature?
Obviously a bug. thanks.
Corrected.