hartmannathan commented on pull request #625:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/625#issuecomment-803174360


   > > ```
   > > * Fix printf() had "%d" but argument was int32_t by changing format 
string to "%ld" and casting the int32_t to long int for purposes of printing, 
to ensure portability.
   > > ```
   > 
   > 
   > The "canonically correct" way to resolve printing of fixed length integers 
is to include inttypes.h and replace "%d" with "%" PRIi32
   > 
   > 
   > Casting to long works too but long may have different lengths on different 
machines.
   
   Ok, I will change it...


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to