Re: [HACKERS] inet data type regression test fails

Поиск
Список
Период
Сортировка
От Taral
Тема Re: [HACKERS] inet data type regression test fails
Дата
Msg-id Pine.LNX.4.10.9905091547390.8677-100000@dragon.taral.net
обсуждение исходный текст
Ответ на Re: [HACKERS] inet data type regression test fails  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] inet data type regression test fails  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
On Sun, 9 May 1999, Bruce Momjian wrote:

> > int    addr = htonl(ntohl(ip_v4addr(ip)) | (0xffffffff >> ip_bits(ip)));

There needs to be a UL on the end of that constant. Otherwise it depends
on whether or not the compiler chooses to make it signed or unsigned. Not
only that, but shifting by >=32 is undefined... Intel chipsets will go mod
32 and change 32 to 0.

Taral



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] libpq and SPI
Следующее
От: Taral
Дата:
Сообщение: Re: [HACKERS] Oops, I seem to have changed UNION's behavior