Fix cast on WAL lag computation to (long long)

This commit is contained in:
Greg Smith
2011-02-22 07:43:02 -05:00
parent a98aec12e1
commit fee7da1ba7
2 changed files with 2 additions and 1 deletions

View File

@@ -450,7 +450,7 @@ walLocationToBytes(char *wal_location)
log_err("wrong log location format: %s\n", wal_location);
return 0;
}
return ((xlogid * 16 * 1024 * 1024 * 255) + xrecoff);
return (( (long long) xlogid * 16 * 1024 * 1024 * 255) + xrecoff);
}