Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-02-17 00:18:49 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-02-17 00:22:41 +0300
commit2f7237ac78bb70342bb1db16b4ee725d0c5dedfa (patch)
treeb3b3d5c4b7d833d724898693433c36033fcde7c1 /tests
parent1c958f5bef4be78af3cf1d4157c3836b71d0c0da (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!
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/blenlib/BLI_ghash_performance_test.cc2
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;