https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a4213d491d768be18c863dfba8ea57b2b38c87a7

commit a4213d491d768be18c863dfba8ea57b2b38c87a7
Author:     George Bișoc <george.bi...@reactos.org>
AuthorDate: Wed Mar 1 19:38:32 2023 +0100
Commit:     George Bișoc <george.bi...@reactos.org>
CommitDate: Sun Oct 1 20:05:57 2023 +0200

    [NTOS:CM] Add surrounding parentheses to GET_HASH_INDEX definition
---
 ntoskrnl/include/internal/cm_x.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/include/internal/cm_x.h b/ntoskrnl/include/internal/cm_x.h
index 373700b8086..b9e561952c3 100644
--- a/ntoskrnl/include/internal/cm_x.h
+++ b/ntoskrnl/include/internal/cm_x.h
@@ -16,7 +16,7 @@
 // Returns the index into the hash table, or the entry itself
 //
 #define GET_HASH_INDEX(ConvKey)                                     \
-    GET_HASH_KEY(ConvKey) % CmpHashTableSize
+    (GET_HASH_KEY(ConvKey) % CmpHashTableSize)
 #define GET_HASH_ENTRY(Table, ConvKey)                              \
     (&Table[GET_HASH_INDEX(ConvKey)])
 #define ASSERT_VALID_HASH(h)                                        \

Reply via email to