mirror of
https://github.com/postgres/postgres.git
synced 2025-06-07 11:02:12 +03:00
Back-patch fix for ReadOffset with off_t wider than int.
This commit is contained in:
parent
3c373885fa
commit
8fd0eb8c7a
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.62.2.4 2003/05/03 22:19:18 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.62.2.5 2004/02/05 22:12:48 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1450,7 +1450,7 @@ ReadOffset(ArchiveHandle *AH, off_t *o)
|
|||||||
for (off = 0; off < AH->offSize; off++)
|
for (off = 0; off < AH->offSize; off++)
|
||||||
{
|
{
|
||||||
if (off < sizeof(off_t))
|
if (off < sizeof(off_t))
|
||||||
*o |= ((*AH->ReadBytePtr) (AH)) << (off * 8);
|
*o |= ((off_t) ((*AH->ReadBytePtr) (AH))) << (off * 8);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((*AH->ReadBytePtr) (AH) != 0)
|
if ((*AH->ReadBytePtr) (AH) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user