Re: [HACKERS] Fix warnings and typo in dshash

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Fix warnings and typo in dshash
Дата
Msg-id 5327.1504447994@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] Fix warnings and typo in dshash  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
Amit Kapila <amit.kapila16@gmail.com> writes:
> I am seeing below warnings (on Win7) in dshash.c
> 1>  dshash.c
> 1>src/backend/lib/dshash.c(318): warning C4334: '<<' : result of
> 32-bit shift implicitly converted to 64 bits (was 64-bit shift
> intended?)
> 1>src/backend/lib/dshash.c(679): warning C4334: '<<' : result of
> 32-bit shift implicitly converted to 64 bits (was 64-bit shift
> intended?)
> 1>src/backend/lib/dshash.c(713): warning C4334: '<<' : result of
> 32-bit shift implicitly converted to 64 bits (was 64-bit shift
> intended?)

> Attached a patch to fix the above warning.

That will just make for different warnings on 32-bit machines.
Perhaps casting to size_t is appropriate here.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] JIT & function naming
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Fix warnings and typo in dshash