3 ms·
Can anyone explain the use of ptrdiff_t instead of size_t (he has typedef'd "size" for ptrdiff_t) The macros are wrapping _Alignof and sizeof both which can't r
by omniscient_oce 3y ago
Can anyone explain the use of ptrdiff_t instead of size_t (he has typedef'd "size" for ptrdiff_t) The macros are wrapping _Alignof and sizeof both which can't return non-zero numbers I thought.
- bergkvist 3y agoptrdiff_t is a signed integer type - which means you can subtract these numbers without worrying about underflow