From: malaterre Date: Tue, 25 Oct 2005 14:01:20 +0000 (+0000) Subject: COMP: Fix comp on bcc55, CLOCKS_PER_SEC is a float on this compiler... sigh X-Git-Tag: OpenJPEG.Version1.2~176 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4414e66e09db7d6430c2690fcdee55a6f34ae247;p=gdcm.git COMP: Fix comp on bcc55, CLOCKS_PER_SEC is a float on this compiler... sigh --- 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);