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;