Skip to content

Commit

Permalink
fix semmle: comparison-with-wider-type (#663)
Browse files Browse the repository at this point in the history
* fix semmle: comparison-with-wider-type

https://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type/

* numberOfHighestPort UCHAR -> ULONG
  • Loading branch information
dwimmel-msft committed Oct 27, 2021
1 parent f5fb15f commit 0cf2d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/miniports/storahci/src/entrypts.c
Expand Up @@ -442,9 +442,9 @@ Return Values:
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
Expand Down

0 comments on commit 0cf2d71

Please sign in to comment.