Hi Rob,

> To prevent a negative value I would think it should be:
>   if (_one_ms_delay > 0) then
I thought so too at the time and checked again yesterday. The code
provided works like (_one_ms_delay > 0), which implies there is still
a signed/unsigned issue here .

> Even when there was an issue with the compiler with signed compares (at the
> time) I don't think it was a good condition check.
I tried compare before the actual calculation too at the time, but
that duplicates the calculation and thus is more error-prone. So I
chose the current solution. Feel free to improve on this. I'm sure
you'll test it thoroughly :)

Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to