casting operand to proper type in BlockIdGetBlockNumber

Поиск
Список
Период
Сортировка
От Zhihong Yu
Тема casting operand to proper type in BlockIdGetBlockNumber
Дата
Msg-id CALNJ-vT9r0DSsAOw9OXVJFxLENoVS_68kJ5x0p44atoYH+H4dg@mail.gmail.com
обсуждение исходный текст
Ответы Re: casting operand to proper type in BlockIdGetBlockNumber  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
In test output, I saw:

src/backend/utils/adt/tid.c:112:16: runtime error: left shift of 65535 by 16 places cannot be represented in type 'int'

I think this was due to the left shift in BlockIdGetBlockNumber not properly casting its operand.

Please see the proposed change in patch.

Thanks
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with moderation of messages with patched attached.
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Problem with moderation of messages with patched attached.