Re: Inconsistent shift operator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roman Kononov <kononov(at)dls(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Inconsistent shift operator
Date: 2008-04-19 15:26:57
Message-ID: 9094.1208618817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Roman Kononov <kononov(at)dls(dot)net> writes:
> The below test cases show the obvious inconsistency between different
> integer types.

[ shrug... ] The << and >> operators just expose the behavior of the
local C compiler's shift operators, and it's clearly stated in the C
spec that shifting by more than the word width produces unspecified
results. I don't see a bug here, any more than it's a bug that the
floating point operators expose machine-specific behavior.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jaime Casanova 2008-04-19 17:10:34 Re: BUG #4115: PostgreSQL ISO format is not really ISO
Previous Message Graham Leggett 2008-04-19 12:38:41 BUG #4116: Cannot create tablespace: could not set permissions on directory