diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-06-21 13:20:35 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-06-21 13:20:35 +0200 |
| commit | 60267860698b86e215bee584857e6b4f2f08b693 (patch) | |
| tree | 1f2da5f4b40634ccd504062322ea9bae8b38d2db /src | |
| parent | 93aca84731bfffb20e968af10055a8cd0401806e (diff) | |
Style fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/jp2/opj_compress.c | 3 | ||||
| -rw-r--r-- | src/bin/jp2/opj_decompress.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c index dc228e27..1bbcebde 100644 --- a/src/bin/jp2/opj_compress.c +++ b/src/bin/jp2/opj_compress.c @@ -1694,7 +1694,8 @@ OPJ_FLOAT64 opj_clock(void) /* cout << "freq = " << ((double) freq.QuadPart) << endl; */ /* t is the high resolution performance counter (see MSDN) */ QueryPerformanceCounter(& t) ; - return freq.QuadPart ? ((OPJ_FLOAT64) t.QuadPart / (OPJ_FLOAT64) freq.QuadPart) : 0 ; + return freq.QuadPart ? ((OPJ_FLOAT64) t.QuadPart / (OPJ_FLOAT64) freq.QuadPart) + : 0 ; #else /* Unix or Linux: use resource usage */ struct rusage t; diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 89fd2025..3dc651dd 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -935,7 +935,8 @@ OPJ_FLOAT64 opj_clock(void) /* cout << "freq = " << ((double) freq.QuadPart) << endl; */ /* t is the high resolution performance counter (see MSDN) */ QueryPerformanceCounter(& t) ; - return freq.QuadPart ? ((OPJ_FLOAT64)t.QuadPart / (OPJ_FLOAT64)freq.QuadPart) : 0; + return freq.QuadPart ? ((OPJ_FLOAT64)t.QuadPart / (OPJ_FLOAT64)freq.QuadPart) : + 0; #elif defined(__linux) struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); |
