| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера