Re: Inconsistent shift operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Inconsistent shift operator
Дата
Msg-id 9094.1208618817@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Inconsistent shift operator  (Roman Kononov <kononov@dls.net>)
Ответы Re: Inconsistent shift operator  (Sam Mason <sam@samason.me.uk>)
Список 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 по дате отправления:

Предыдущее
От: "Roman Kononov"
Дата:
Сообщение: BUG #4114: Inconsistent shift operator
Следующее
От: "Daniel Ruoso"
Дата:
Сообщение: BUG #4115: PostgreSQL ISO format is not really ISO