From 5820ab693547f3ac04f232fd0ce370120414f4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20=C3=84ij=C3=B6?= Date: Wed, 23 Nov 2016 21:05:40 +0200 Subject: [PATCH] Fix incorrect loop continuation condition --- src/core/memory/test_memory_copy_allocated_to_allocated.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory/test_memory_copy_allocated_to_allocated.c b/src/core/memory/test_memory_copy_allocated_to_allocated.c index f5f45d8..193df9d 100644 --- a/src/core/memory/test_memory_copy_allocated_to_allocated.c +++ b/src/core/memory/test_memory_copy_allocated_to_allocated.c @@ -84,7 +84,7 @@ int test_memory_copy_allocated_to_allocated() { hsa_region_t global_region; global_region.handle=(uint64_t)-1; hsa_agent_iterate_regions(agent_list.agents[ii], get_global_memory_region, &global_region); - if ((uint64_t)-1 != global_region.handle) { + if ((uint64_t)-1 == global_region.handle) { continue; }