Browse Source

src/datawizard/malloc.c: fix test to check if flag is set

Nathalie Furmento 12 years ago
parent
commit
aed9a3073a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/datawizard/malloc.c

+ 1 - 1
src/datawizard/malloc.c

@@ -103,7 +103,7 @@ int starpu_malloc(void **A, size_t dim)
 
 	STARPU_ASSERT(A);
 
-	if (_malloc_flags && STARPU_MALLOC_COUNT)
+	if (_malloc_flags & STARPU_MALLOC_COUNT)
 	{
 		if (_starpu_memory_manager_can_allocate_size(dim, 0) == 0)
 		{