Fix broken ghash performance gtest.

Regression from rB2dba2b3d71d9781bce45. Do not understand why MSVC needs this convoluted
allocation (looks like broken compiler crap?), but at least let's do it correctly!
This commit is contained in:
Bastien Montagne 2016-02-16 22:18:49 +01:00
parent 1c958f5bef
commit 2f7237ac78
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ static void int4_ghash_tests(GHash *ghash, const char *id, const unsigned int nb
{
printf("\n========== STARTING %s ==========\n", id);
void *data_v = MEM_mallocN(sizeof(unsigned int (*)[4]) * (size_t)nbr, __func__);
void *data_v = MEM_mallocN(sizeof(unsigned int[4]) * (size_t)nbr, __func__);
unsigned int (*data)[4] = (unsigned int (*)[4])data_v;
unsigned int (*dt)[4];
unsigned int i, j;