summaryrefslogtreecommitdiff
path: root/sys/src/cmd/snap/write.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-11-22 10:31:30 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-11-22 10:31:30 +0100
commit33636932054f74c7a922a9713a9229d6d5fc7f38 (patch)
treea53035e5bbd458088876eca7699b39c9fda25ffa /sys/src/cmd/snap/write.c
parent56927887249d8529afa57c38d7935edb2d9cc49f (diff)
snap: consequently use ulong for page index and count
Diffstat (limited to 'sys/src/cmd/snap/write.c')
-rw-r--r--sys/src/cmd/snap/write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/snap/write.c b/sys/src/cmd/snap/write.c
index 2cbb1e5c0..a28d0cbd3 100644
--- a/sys/src/cmd/snap/write.c
+++ b/sys/src/cmd/snap/write.c
@@ -18,7 +18,7 @@ char *pfile[Npfile] = {
static void
writeseg(Biobuf *b, Proc *proc, Seg *s)
{
- int i, npg;
+ ulong i, npg;
Page **pp, *p;
int type;
@@ -50,7 +50,7 @@ writeseg(Biobuf *b, Proc *proc, Seg *s)
abort();
p->written = 1;
p->type = type;
- p->offset = s->offset + i*Pagesize;
+ p->offset = s->offset + (uvlong)i*Pagesize;
p->pid = proc->pid;
}
}