tradcpp.c (do_error): Cast difference of pointers to int for error message.
authorBrad Lucier <lucier@math.purdue.edu>
Tue, 12 Dec 2000 23:17:00 +0000 (23:17 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 12 Dec 2000 23:17:00 +0000 (23:17 +0000)
        * tradcpp.c (do_error): Cast difference of pointers to int
        for error message.

From-SVN: r38212

gcc/ChangeLog
gcc/tradcpp.c

index 65a540a..567ddaf 100644 (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...
index 27bd3a2..c70845f 100644 (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.  */