Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
veyron
on March 31, 2011
|
parent
|
context
|
favorite
| on:
A Collection of Examples of 64-bit Errors in Real ...
ptrdiff_t is not guaranteed to be the same size as size_t, but ssize_t is. Also, IIRC ptrdiff_t is unsigned, whereas ssize_t is signed, which could make 32/64 bit arithmetic a PITA.
you are correct inasfar as ssize_t is a posix extension.
cpeterso
on March 31, 2011
[–]
ptrdiff_t is signed:
http://www.viva64.com/en/t/0041/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
you are correct inasfar as ssize_t is a posix extension.