cast ptrdiff_t to int for ANSI

This commit is contained in:
eck
1990-04-25 15:10:13 +00:00
parent c5b9658ba0
commit 57a4db49d4
5 changed files with 12 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ getwdir(fn)
return "";
if (p) {
*p = '\0';
fn = Salloc(fn, p - &fn[0] + 1);
fn = Salloc(fn, (unsigned)(p - &fn[0] + 1));
*p = '/';
return fn;
}