yamt commented on PR #16103:
URL: https://github.com/apache/nuttx/pull/16103#issuecomment-2771500740

   > > > On AVR architecture, the compiler apparently sometimes truncates 
NSEC_PER_TICK to 16bit value
   > > 
   > > 
   > > can you please explain why? if it's a compiler bug, please consider to 
put a workaround in a #ifdef.
   > 
   > many 16bit arch map int to 16bit, long could ensure that the size is >= 
32bit, so please don't add #ifdef.
   
   oh, its int is 16 bit? then that makes sense.
   so, this PR basically relies on the size of long instead of the size of int?
   why don't you use explicitly sized types, like int32_t?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to