acme, sam: handle >1GB files correctly

TBR=rsc
https://codereview.appspot.com/74060043
This commit is contained in:
Russ Cox 2014-03-13 18:46:28 -04:00
parent e78ed7a67b
commit 219cf22d68
4 changed files with 10 additions and 4 deletions

View file

@ -69,7 +69,7 @@ struct Range
struct Block
{
uint addr; /* disk address in bytes */
vlong addr; /* disk address in bytes */
union
{
uint n; /* number of used runes in block */
@ -80,7 +80,7 @@ struct Block
struct Disk
{
int fd;
uint addr; /* length of temp file */
vlong addr; /* length of temp file */
Block *free[Maxblock/Blockincr+1];
};