Cynerd commented on code in PR #8183: URL: https://github.com/apache/nuttx/pull/8183#discussion_r1073878712
########## include/limits.h: ########## @@ -309,4 +309,9 @@ #define HOST_NAME_MAX 32 +/* ptrdiff_t limits */ + +#define PTRDIFF_MAX INT_MAX Review Comment: Oh.. you are right. I somehow looked it up wrongly. It is `_ssize_t`, which is defined by architecture. That makes it way more complicated. edit: Or not... correct me, but `_ssize_t` limits are defined as `PTR_MIN` and `PTR_MAX`. edit2: Except when `__SIZE_TYPE__` is used. I haven't find it being used anywhere in the code base. What is the idea behind 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. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org