On 2018-08-18 14:19:10 -0500, Segher Boessenkool wrote: > Usually cast between a pointer type and a different size integer type > is a programmer mistake. That is why this warning is enabled by -Wall. I don't see why. In doubt, one should be able to choose the largest integer type available. Note also that the C standard does not say that an integer type of the same size as the pointer is sufficient. > Do you have evidence of many false positives? False positives when casting to uintmax_t. -- Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)