From f556fde8fc7979c978d441445032f6fde4083e84 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 23 Aug 2021 22:42:46 +0200 Subject: [PATCH] Revert "Fix for clang 14: new check was added against substracting from a potential nullptr." This reverts commit 1c67b1098855cd6e7782c8379cfe27fc310144eb. --- src/mc/remote/AppSide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/remote/AppSide.cpp b/src/mc/remote/AppSide.cpp index eeee309243..2938475731 100644 --- a/src/mc/remote/AppSide.cpp +++ b/src/mc/remote/AppSide.cpp @@ -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]++; } -- 2.20.1