warn about ptrdiff_t passed as long on 2-4 machines

This commit is contained in:
eck
1990-04-25 15:09:51 +00:00
parent f2b4713c24
commit dc12b2fa3d
8 changed files with 40 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ replace(idf)
if (!expand_macro(repl, idf))
return 0;
InputLevel++;
InsertText(repl->r_text, repl->r_ptr - repl->r_text);
InsertText(repl->r_text, (int)(repl->r_ptr - repl->r_text));
idf->id_macro->mc_flag |= NOREPLACE;
repl->r_level = InputLevel;
repl->next = ReplaceList;
@@ -347,7 +347,7 @@ actual(repl)
/* When the identifier has an associated macro
replacement list, it's expanded.
*/
idef = idf_hashed(buf, p - buf, hash);
idef = idf_hashed(buf, (int) (p - buf), hash);
if (NoExpandMacro || !replace(idef)) {
if ((idef->id_macro
&& (idef->id_macro->mc_flag & NOREPLACE))