summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2016-09-14 00:12:43 +0200
committerGitHub <noreply@github.com>2016-09-14 00:12:43 +0200
commit0954bc11e3ab6a39d86e5ed51286da4b8989743d (patch)
tree1ae2667a37e4133925c4ee7352080b7da7d15cf2 /src/bin
parent1e69940955f6d5b05369ebeeafe70e698cc2b870 (diff)
Fix some warnings (#838)
Fix warnings introduced by uclouvain/openjpeg#786
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jp2/opj_decompress.c2
1 files changed, 1 insertions, 1 deletions
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 */