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

@@ -252,7 +252,7 @@ garbage:
ptok->tk_val = (arith)0;
return ptok->tk_symb = INTEGER;
}
ptok->tk_str = Malloc(tg - buf);
ptok->tk_str = Malloc((unsigned)(tg - buf));
strcpy(ptok->tk_str, buf);
return IDENTIFIER;
}