From 4414e66e09db7d6430c2690fcdee55a6f34ae247 Mon Sep 17 00:00:00 2001 From: malaterre Date: Tue, 25 Oct 2005 14:01:20 +0000 Subject: [PATCH] COMP: Fix comp on bcc55, CLOCKS_PER_SEC is a float on this compiler... sigh --- src/gdcmopenjpeg/libopenjpeg/tcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gdcmopenjpeg/libopenjpeg/tcd.c b/src/gdcmopenjpeg/libopenjpeg/tcd.c index b087746c..a9f3f533 100644 --- a/src/gdcmopenjpeg/libopenjpeg/tcd.c +++ b/src/gdcmopenjpeg/libopenjpeg/tcd.c @@ -1286,7 +1286,7 @@ for (compno = 0; compno < tile->numcomps; compno++) { time7 = clock() - time7; fprintf(stdout,"total: %ld.%.3ld s\n", time7 / CLOCKS_PER_SEC, - (time7 % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time7 % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); /* cleaning memory */ for (compno = 0; compno < tile->numcomps; compno++) { @@ -1445,7 +1445,7 @@ for (compno = 0; compno < tile->numcomps; compno++) { /*---------------CLEAN-------------------*/ time = clock() - time; fprintf(stdout,"total: %ld.%.3ld s\n", time / CLOCKS_PER_SEC, - (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); for (compno = 0; compno < tile->numcomps; compno++) { tilec = &tile->comps[compno]; @@ -1584,7 +1584,7 @@ int tcd_decode_tile(unsigned char *src, int len, int tileno) time = clock() - time; fprintf(stdout, "%ld.%.3ld s\n", time / CLOCKS_PER_SEC, - (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); -- 2.48.1