| От | Tom Lane |
|---|---|
| Тема | Re: A few cases of left shifting negative integers |
| Дата | |
| Msg-id | 26124.1440176622@sss.pgh.pa.us обсуждение |
| Ответ на | A few cases of left shifting negative integers (Piotr Stefaniak <postgres@piotr-stefaniak.me>) |
| Ответы |
Re: A few cases of left shifting negative integers
|
| Список | pgsql-hackers |
Piotr Stefaniak <postgres@piotr-stefaniak.me> writes:
> during my testing I've found cases of left-shifting negative integers
> during run-time and I was recently encouraged to post a report of them,
> so here it is (done against 960ea971e66bcd621ba88841b4cb85c7f0e7c383).
What's your concern exactly? The behavior is well-defined, at least as
long as we don't shift far enough to have integer overflow, and I believe
in most of these cases that's not possible. In int8shl etc, you just get
whatever the machine does with that, which seems fine to me; we do not
document any particular semantics for such cases.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера