X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fbin%2Fjp2%2Fopj_decompress.c;h=83160c3d18e19d0383cc32c22236491e0c635777;hb=4d5c5e7c4891491d61c7deaf77d9238b3621c32a;hp=57fe554be9e37a68fac6c7c22c30a33d07d04634;hpb=f66e1204523415e8936c237ce9cc759e2185708f;p=openjpeg.git diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 57fe554b..83160c3d 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -911,7 +911,7 @@ OPJ_FLOAT64 opj_clock(void) { #elif defined(__linux) struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); - return( ts.tv_sec + ts.tv_nsec * 1e-9 ); + return( (OPJ_FLOAT64)ts.tv_sec + (OPJ_FLOAT64)ts.tv_nsec * 1e-9 ); #else /* Unix : use resource usage */ /* FIXME: this counts the total CPU time, instead of the user perceived time */