mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
1c958f5bef
commit
2f7237ac78
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue