Re: pgsql: Expose internal function for converting int64 to numeric

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pgsql: Expose internal function for converting int64 to numeric
Дата
Msg-id CAApHDvofA_vsrpC13mq_hZyuye5B-ssKEaer04OouXYCO5-uXQ@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Expose internal function for converting int64 to numeric  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-committers
On Thu, 10 Sep 2020 at 06:41, Peter Eisentraut <peter@eisentraut.org> wrote:
> src/backend/utils/adt/dbsize.c        |  21 ++----

This change introduced a new compiler warning on MSVC.

src\backend\utils\adt\dbsize.c(630): warning C4334: '<<': result of
32-bit shift implicitly converted to 64 bits (was 64-bit shift
intended?)

I see all of the calls all bit shift by a constant that''s always
below 32. So there's no actual danger here, but the attached at least
silences the warning.

I'll push it in a bit if nobody has other ideas.

David

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Stamp 13rc1.
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Fix compiler warning