Re: [HACKERS] inet data type regression test fails

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] inet data type regression test fails
Дата
Msg-id 199905101828.OAA04602@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] inet data type regression test fails  (Taral <taral@taral.net>)
Ответы Re: [HACKERS] inet data type regression test fails  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список 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.
> 

Anyone want to supply a patch?


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Oops, I seem to have changed UNION's behavior
Следующее
От: jwieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [HACKERS] numeric & decimal