diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-10-22 14:54:43 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-10-22 14:54:43 +0000 |
commit | ceae23984c93b679d6e4d71d1618f157c131460e (patch) | |
tree | 3617e60fa1d95ce701a1bdfe665c540fe3e303a0 /tune | |
parent | 1f49288bc56ef2c3aa9cc1f47b91e0921cb5a5a6 (diff) | |
download | mpfr-ceae23984c93b679d6e4d71d1618f157c131460e.tar.gz |
[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
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tuneup.c | 4 |
1 files 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); } |