Re: fix compile warning for pg_backup_tar.c - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: fix compile warning for pg_backup_tar.c
Date
Msg-id 200411081948.35112.peter_e@gmx.net
Whole thread Raw
In response to Re: fix compile warning for pg_backup_tar.c  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: fix compile warning for pg_backup_tar.c  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
Andrew Dunstan wrote:
> ISTM that what is happening here is that the compiler is smart enough
> to know that what is in MAX_TAR_MEMBER_FILELEN can't be exceeded by
> any possible value of type off_t.

Yeah, I think off_t is only 32 bits there.  Then using INT64_IS_BUSTED
as conditional is really misleading.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: fix compile warning for pg_backup_tar.c
Next
From: Andrew Dunstan
Date:
Subject: Re: fix compile warning for pg_backup_tar.c