3 ms·
"size_t can store a pointer, it is better to use another unsinged integer type uintptr_t for that purpose " So he is actually recommending the unsigned version
by pmelendez 11y ago
"size_t can store a pointer, it is better to use another unsinged integer type uintptr_t for that purpose "
So he is actually recommending the unsigned version. Although there are some people (like the Google guidelines for C++) that recommend not using unsigned types because of overflows (which is arguable but it is a point)