| tscat: fix 64-bit warning - plan9port - [fork] Plan 9 from user space | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit db56dbf36b30921ab03d512f00388b331bd5da35 | |
| parent 0e52c796bdd86faddecf7bb4bba64644056d75c3 | |
| Author: Russ Cox <[email protected]> | |
| Date: Mon, 25 May 2009 21:06:12 -0700 | |
| scat: fix 64-bit warning | |
| Diffstat: | |
| M src/cmd/scat/display.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/src/cmd/scat/display.c b/src/cmd/scat/display.c | |
| t@@ -38,7 +38,7 @@ displaypic(Picture *pic) | |
| /* release the memory as we hand it off; this could be a big p… | |
| 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) |