Re: Inconsistent shift operator - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Inconsistent shift operator
Date
Msg-id 9094.1208618817@sss.pgh.pa.us
Whole thread Raw
In response to Inconsistent shift operator  (Roman Kononov <kononov@dls.net>)
Responses Re: Inconsistent shift operator
List pgsql-bugs
Roman Kononov <kononov@dls.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

pgsql-bugs by date:

Previous
From: "Roman Kononov"
Date:
Subject: BUG #4114: Inconsistent shift operator
Next
From: "Daniel Ruoso"
Date:
Subject: BUG #4115: PostgreSQL ISO format is not really ISO