scat: fix 64-bit warning
This commit is contained in:
parent
0e52c796bd
commit
db56dbf36b
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ displaypic(Picture *pic)
|
||||||
/* release the memory as we hand it off; this could be a big piece of data */
|
/* release the memory as we hand it off; this could be a big piece of data */
|
||||||
a = pic->data;
|
a = pic->data;
|
||||||
while(n > 0){
|
while(n > 0){
|
||||||
i = 8192 - (((int)a)&8191);
|
i = 8192 - (((uintptr)a)&8191);
|
||||||
if(i > n)
|
if(i > n)
|
||||||
i = n;
|
i = n;
|
||||||
if(write(p[1], a, i)!=i)
|
if(write(p[1], a, i)!=i)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue