3 ms·
The only bad or misleading typedef is one that conceals that a type is a pointer or reference, and therefore implicitly converts to another type. Technically,
by moloch-hai 4y ago
The only bad or misleading typedef is one that conceals that a type is a pointer or reference, and therefore implicitly converts to another type.
Technically, int32_t is bad in that way, but we are not fooled by it.
- unsafecast 4y ago> Technically, int32_t is bad in that way, but we are not fooled by it. Meaning? On my system int32_t is directly typedefed to unsigned int, absolutely no hidden pointers or conversions.
- moloch-hai 4y agoint32_t promotes to long, converts to unsigned, and truncates to short and char, all silently.