tradcpp.c (do_error): Cast difference of pointers to int for error message.

* tradcpp.c (do_error): Cast difference of pointers to int
        for error message.

From-SVN: r38212
This commit is contained in:
Brad Lucier 2000-12-12 23:17:00 +00:00 committed by Neil Booth
parent edf1137870
commit 1df97aa412
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-12-12 Brad Lucier <lucier@math.purdue.edu>
* tradcpp.c (do_error): Cast difference of pointers to int
for error message.
2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...

View File

@ -3184,7 +3184,7 @@ do_error (buf, limit, op)
U_CHAR *limit;
FILE_BUF *op ATTRIBUTE_UNUSED;
{
error ("#error%.*s", limit - buf, buf);
error ("#error%.*s", (int) (limit - buf), buf);
}
/* Handle a #assert directive. */