From: | Oleg Sharoiko <os(at)rsu(dot)ru> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | netmask |
Date: | 1999-07-30 06:32:10 |
Message-ID: | Pine.BSF.4.10.9907301015240.14588-200000@fido.rnd.runnet.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello!
I think this is a bug. But it's said not to report any bugs unless you're
sure that it's a bug, so I'm asking heer is this a bug?
template1=> select netmask('10.0.0.1/0');
netmask
---------------
255.255.255.255
(1 row)
This happens because
word << shift
uses only 5 low bits of shift (this is described in docs on Intel processor).
Running
word << 32
on sparc also gives unchanegd word
I've included a patch for 6.5.
I think it will work with 6.5.1
--
Oleg.
Attachment | Content-Type | Size |
---|---|---|
network.diff | text/plain | 773 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Yury Don | 1999-07-30 10:47:57 | PyGreSQL module 2.4 |
Previous Message | Howie | 1999-07-30 05:53:14 | Large Object questions... |