From ceae23984c93b679d6e4d71d1618f157c131460e Mon Sep 17 00:00:00 2001 From: zimmerma Date: Fri, 22 Oct 2010 14:54:43 +0000 Subject: [tuneup.c] added cast from time_t to long, after warning under HP-UX: tuneup.c:1131: warning: format '%ld' expects type 'long int', but argument 3 has type 'time_t' tuneup.c:1133: warning: format '%ld' expects type 'long int', but argument 2 has type 'time_t' (I don't know if it is because time_t is unsigned, or has a different width) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7238 280ebfd0-de03-0410-8827-d642c229c3f4 --- tune/tuneup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tune/tuneup.c b/tune/tuneup.c index 6f176fd95..d762d470d 100644 --- a/tune/tuneup.c +++ b/tune/tuneup.c @@ -1128,9 +1128,9 @@ all (const char *filename) /* End of tuning */ time (&end_time); fprintf (f, "/* Tuneup completed successfully, took %ld seconds */\n", - end_time - start_time); + (long) (end_time - start_time)); if (verbose) - printf ("Complete (took %ld seconds).\n", end_time - start_time); + printf ("Complete (took %ld seconds).\n", (long) (end_time - start_time)); fclose (f); } -- cgit v1.2.1