aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/scat
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-05-25 21:06:12 -0700
committerRuss Cox <rsc@swtch.com>2009-05-25 21:06:12 -0700
commitdb56dbf36b30921ab03d512f00388b331bd5da35 (patch)
treeab2b4e63eba4960090fb4d7d9fb7aae04eaed4d4 /src/cmd/scat
parent0e52c796bdd86faddecf7bb4bba64644056d75c3 (diff)
downloadplan9port-db56dbf36b30921ab03d512f00388b331bd5da35.tar.gz
plan9port-db56dbf36b30921ab03d512f00388b331bd5da35.tar.bz2
plan9port-db56dbf36b30921ab03d512f00388b331bd5da35.zip
scat: fix 64-bit warning
Diffstat (limited to 'src/cmd/scat')
-rw-r--r--src/cmd/scat/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/scat/display.c b/src/cmd/scat/display.c
index 486d5303..9af012ea 100644
--- a/src/cmd/scat/display.c
+++ b/src/cmd/scat/display.c
@@ -38,7 +38,7 @@ displaypic(Picture *pic)
/* release the memory as we hand it off; this could be a big piece of data */
a = pic->data;
while(n > 0){
- i = 8192 - (((int)a)&8191);
+ i = 8192 - (((uintptr)a)&8191);
if(i > n)
i = n;
if(write(p[1], a, i)!=i)