Closed
Description
We use the C type long
a lot in the C API, which is problem because long
varies in size across platforms in a way that is hard to deal with. A long
might be 32bit or 64bit on a 64bit platform, which makes for lots of #ifdef
s and conditional logic that wouldn't be needed if we used C99 stdint
integer types.
Our code is also full of int
where we mean int32_t
. int
is almost always 32 bit, but it is not guaranteed.