Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Fix for clang 14: new check was added against substracting from a potential...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 23 Aug 2021 20:42:46 +0000 (22:42 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Mon, 23 Aug 2021 20:42:46 +0000 (22:42 +0200)
This reverts commit 1c67b1098855cd6e7782c8379cfe27fc310144eb.

src/mc/remote/AppSide.cpp

index eeee309..2938475 100644 (file)
@@ -256,7 +256,7 @@ void AppSide::ignore_heap(void* address, std::size_t size) const
     message.fragment = -1;
     heap->heapinfo[message.block].busy_block.ignore++;
   } else {
-    message.fragment = address ? (ADDR2UINT(address) % BLOCKSIZE) >> heap->heapinfo[message.block].type : 0;
+    message.fragment = (ADDR2UINT(address) % BLOCKSIZE) >> heap->heapinfo[message.block].type;
     heap->heapinfo[message.block].busy_frag.ignore[message.fragment]++;
   }