Обсуждение: sign mismatch in walreceiver.c

Поиск
Список
Период
Сортировка

sign mismatch in walreceiver.c

От
Peter Eisentraut
Дата:
This looks suspicious

static TimeLineID   recvFileTLI = -1;

because TimeLineID is uint32.  The Solaris compiler complains about the
sign mismatch.

Maybe 0 would be a better initial value?




Re: sign mismatch in walreceiver.c

От
Heikki Linnakangas
Дата:
On 12.07.2012 23:57, Peter Eisentraut wrote:
> This looks suspicious
>
> static TimeLineID   recvFileTLI = -1;
>
> because TimeLineID is uint32.  The Solaris compiler complains about the
> sign mismatch.
>
> Maybe 0 would be a better initial value?

Agreed, fixed, thanks.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com