Fix signed/unsigned comparison and assignment in AsusTUFLaptopController_Windows.cpp
This commit is contained in:
parent
69f8f644e6
commit
61802ed664
1 changed files with 2 additions and 2 deletions
|
|
@ -149,9 +149,9 @@ bool AsusTUFLaptopController::deviceIoControlWrapper(const void *dataIn, int com
|
|||
0);
|
||||
if(result)
|
||||
{
|
||||
if(*dataSizeOut < BytesReturned)
|
||||
if((size_t)*dataSizeOut < BytesReturned)
|
||||
{
|
||||
BytesReturned = *dataSizeOut;
|
||||
BytesReturned = (size_t)*dataSizeOut;
|
||||
}
|
||||
memmove(dataOut, outBuffer, BytesReturned);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue