diff options
| author | dwimmel-msft <[email protected]> | 2021-10-27 10:14:09 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-27 10:14:09 -0700 |
| commit | 0cf2d71b0bf876e8da6cd9338b48b203c92a6b1d (patch) | |
| tree | 3d415eaf211885e0da9df14a9787491cb0d33d1d | |
| parent | f5fb15f5913fea0a7ee00da5c566c0f614c34bd4 (diff) | |
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
| -rw-r--r-- | storage/miniports/storahci/src/entrypts.c | 4 |
1 files 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 |
