From 43cec2ed6748a21c117186c936a09256af4600ae Mon Sep 17 00:00:00 2001 From: Enrico Giordani Date: Thu, 14 Jan 2016 16:57:06 +0100 Subject: [PATCH] [Code cleanup] Better expression grouping. --- src/Win32_Interop/Win32_QFork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Win32_Interop/Win32_QFork.cpp b/src/Win32_Interop/Win32_QFork.cpp index a04fadb2..1df10086 100644 --- a/src/Win32_Interop/Win32_QFork.cpp +++ b/src/Win32_Interop/Win32_QFork.cpp @@ -1067,7 +1067,7 @@ BOOL FreeHeapBlock(LPVOID addr, size_t size) { } // Check if the address belongs to the memory map heap or to the system heap - BOOL addressInRedisHeap = (addr >= g_pQForkControl->heapStart && addr < g_pQForkControl->heapEnd); + BOOL addressInRedisHeap = ((addr >= g_pQForkControl->heapStart) && (addr < g_pQForkControl->heapEnd)); // g_BypassMemoryMapOnAlloc is true for the forked process, in this case // we need to handle the address differently based on the heap that was -- GitLab