ptr_diff is a long in ANSI C; cast to int

This commit is contained in:
ceriel
1991-04-23 09:35:51 +00:00
parent 61c79318ad
commit 214302fc11
6 changed files with 7 additions and 7 deletions

View File

@@ -64,5 +64,5 @@ _wrf(n,w,r,f) int n,w; double r; struct file *f; {
*p++ = (*b ? *b++ : FILL_CHAR);
assert(p <= buf+BUFSIZE);
}
_wstrin(w,p-buf,buf,f);
_wstrin(w,(int)(p-buf),buf,f);
}