projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78abc13
)
Fix ReadOffset() to work correctly when off_t is wider than int.
author
Tom Lane
<
[email protected]
>
Sun, 4 Jan 2004 04:02:22 +0000
(
04:02
+0000)
committer
Tom Lane
<
[email protected]
>
Sun, 4 Jan 2004 04:02:22 +0000
(
04:02
+0000)
src/bin/pg_dump/pg_backup_archiver.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_backup_archiver.c
b/src/bin/pg_dump/pg_backup_archiver.c
index 9ce5741c1a03b167ae7fb48d2bffdb75bcd99177..5fb3f67f7d09ff563a8342491dbd2d88a62796c0 100644
(file)
--- a/
src/bin/pg_dump/pg_backup_archiver.c
+++ b/
src/bin/pg_dump/pg_backup_archiver.c
@@
-1425,7
+1425,7
@@
ReadOffset(ArchiveHandle *AH, off_t *o)
for (off = 0; off < AH->offSize; off++)
{
if (off < sizeof(off_t))
- *o |= ((
*AH->ReadBytePtr) (AH
)) << (off * 8);
+ *o |= ((
off_t) ((*AH->ReadBytePtr) (AH)
)) << (off * 8);
else
{
if ((*AH->ReadBytePtr) (AH) != 0)