Re: Bool values under Mac OS X

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bool values under Mac OS X
Дата
Msg-id 1708.1114525451@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bool values under Mac OS X  (lothar.behrens@lollisoft.de)
Ответы Re: Bool values under Mac OS X  (lothar.behrens@lollisoft.de)
Список pgsql-odbc
lothar.behrens@lollisoft.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

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Unrecognized C_parameter type in copy_statement_with_parameters
Следующее
От: lothar.behrens@lollisoft.de
Дата:
Сообщение: Re: Bool values under Mac OS X