fixed minor conversion warning

This commit is contained in:
Yann Collet 2019-04-10 15:54:55 -07:00
parent 885476fb5b
commit 9703a59121
2 changed files with 3 additions and 2 deletions

View File

@ -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 */

View File

@ -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;