sdalu commented on issue #1093: timeout/tick / int32_t vs uint32_t
URL: https://github.com/apache/mynewt-core/issues/1093#issuecomment-391709211
 
 
   What would be the use for negative time? Seems dangerous to me to have this 
kind of type.
   
   I only see use for time (expressed from OS start) and delta (ticks) which 
both are positive number.
   
   With signed time people can be tempted to compute `delta = now - past` which 
will be undefined behaviour in case of overflow
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to