fixed static size of benchFnState

added a static assert to ensure condition is respected on target platform
This commit is contained in:
Yann Collet
2019-01-30 17:59:07 -08:00
parent cee31bbd25
commit fb756156f5
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ void BMK_freeTimedFnState(BMK_timedFnState_t* state);
* It will check if provided buffer is large enough and is correctly aligned,
* and will return NULL if conditions are not respected.
*/
#define BMK_TIMEDFNSTATE_SIZE 56
#define BMK_TIMEDFNSTATE_SIZE 64
typedef union {
char never_access_space[BMK_TIMEDFNSTATE_SIZE];
long long alignment_enforcer; /* must be aligned on 8-bytes boundaries */