lothar(dot)behrens(at)lollisoft(dot)de writes:
> My conversion is these:
> bool b = *(bool*) buffer;
What's the data type of "buffer"?
On Intel hardware the above will fetch the low-order byte of "buffer",
but on PPC (and other big-endian) hardware, it will fetch the high-order
byte. I suspect strongly that your problem has nothing to do with OS X
versus Windows and everything to do with being careless about endianness
issues.
regards, tom lane