From 0cf2d71b0bf876e8da6cd9338b48b203c92a6b1d Mon Sep 17 00:00:00 2001 From: dwimmel-msft <84540915+dwimmel-msft@users.noreply.github.com> Date: Wed, 27 Oct 2021 10:14:09 -0700 Subject: fix semmle: comparison-with-wider-type (#663) * fix semmle: comparison-with-wider-type https://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type/ * numberOfHighestPort UCHAR -> ULONG --- storage/miniports/storahci/src/entrypts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/miniports/storahci/src/entrypts.c b/storage/miniports/storahci/src/entrypts.c index efbe2279..71469e02 100644 --- a/storage/miniports/storahci/src/entrypts.c +++ b/storage/miniports/storahci/src/entrypts.c @@ -442,9 +442,9 @@ Note: PAHCI_ADAPTER_EXTENSION adapterExtension = NULL; PAHCI_MEMORY_REGISTERS abar = NULL; //Used to find the number of channels implemented - UCHAR i = 0; + ULONG i = 0; ULONG piMask = 0; - UCHAR numberOfHighestPort = 0; + ULONG numberOfHighestPort = 0; ULONG portCount = 0; ULONG portNumber; //Used to enable the AHCI interface -- cgit v1.3.1