You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/18 18:44:12 UTC

[GitHub] [incubator-nuttx] davids5 commented on pull request #2863: stdint.h: Use conversion macros for the definition of MIN and MAX constants

davids5 commented on pull request #2863:
URL: https://github.com/apache/incubator-nuttx/pull/2863#issuecomment-781556860


   What is wrong with using simple to grock numbers that just make sense.
   
    ```
   # define INT8_MAX            INT8_C(127)
    # define INT8_MIN          (-INT8_C(127)-1)
    # define UINT8_MAX          UINT8_C(255)
    # define __INT_LEAST8_MIN    INT8_MIN
    # define __INT_LEAST8_MAX    INT8_MAX
    # define __UINT_LEAST8_MAX  UINT8_MAX
   ```


----------------------------------------------------------------
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:
users@infra.apache.org