diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-17 00:18:49 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-17 00:22:41 +0300 |
commit | 2f7237ac78bb70342bb1db16b4ee725d0c5dedfa (patch) | |
tree | b3b3d5c4b7d833d724898693433c36033fcde7c1 | |
parent | 1c958f5bef4be78af3cf1d4157c3836b71d0c0da (diff) |
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!
-rw-r--r-- | tests/gtests/blenlib/BLI_ghash_performance_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtests/blenlib/BLI_ghash_performance_test.cc b/tests/gtests/blenlib/BLI_ghash_performance_test.cc index 972d1f6909c..817f0b3d10a 100644 --- a/tests/gtests/blenlib/BLI_ghash_performance_test.cc +++ b/tests/gtests/blenlib/BLI_ghash_performance_test.cc @@ -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; |