3 ms·
That can be tricky because you can't emulate the semantics of the C99 bool type. In C99 (bool)256 == 1 but on systems which emulate bool with, e.g., an 8-b
by wahern 9y ago
That can be tricky because you can't emulate the semantics of the C99 bool type.
In C99
(bool)256 == 1
but on systems which emulate bool with, e.g., an 8-bit unsigned char then
(bool)256 == 0
- petereisentraut 9y agoAnother problem is that the bool provided by stdbool.h is 4 bytes on some platforms, which breaks PostgreSQL all over the place.