From: Even Rouault Date: Wed, 21 Jun 2017 11:20:35 +0000 (+0200) Subject: Style fix X-Git-Tag: v2.2.0~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60267860698b86e215bee584857e6b4f2f08b693;p=openjpeg Style fix --- 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);