From 9703a5912173982f9e9f14681f428afe18a4d828 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 10 Apr 2019 15:54:55 -0700 Subject: [PATCH] fixed minor conversion warning --- programs/benchfn.c | 3 ++- tests/fullbench.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/benchfn.c b/programs/benchfn.c index 8ae61953..fda09935 100644 --- a/programs/benchfn.c +++ b/programs/benchfn.c @@ -167,7 +167,8 @@ void BMK_freeTimedFnState(BMK_timedFnState_t* state) { free(state); } -BMK_timedFnState_t* BMK_initStatic_timedFnState(void* buffer, size_t size, unsigned total_ms, unsigned run_ms) +BMK_timedFnState_t* +BMK_initStatic_timedFnState(void* buffer, size_t size, unsigned total_ms, unsigned run_ms) { enum { timedFnState_staticSize_isLargeEnough=(1/(sizeof(BMK_timedFnState_shell) >= sizeof(struct BMK_timedFnState_s))) }; /* static assert */ typedef struct { char c; long long ll; } ll_align; /* this will force ll to be aligned at its next best position */ diff --git a/tests/fullbench.c b/tests/fullbench.c index 47494d84..6e42d210 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -497,7 +497,7 @@ static int benchMem(unsigned benchNb, BMK_benchParams_t bp; BMK_runTime_t bestResult; bestResult.sumOfReturn = 0; - bestResult.nanoSecPerRun = (unsigned long long)(-1LL); + bestResult.nanoSecPerRun = (double)(-1); assert(tfs != NULL); bp.benchFn = benchFunction;