Fix warning in AlienwareAW3423DWFController.cpp
This commit is contained in:
parent
47bb1c0b37
commit
804490399f
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ std::vector<unsigned char> AlienwareAW3423DWFController::GenerateKey(
|
||||||
if(response.size() > 14)
|
if(response.size() > 14)
|
||||||
{
|
{
|
||||||
unsigned char idx = response[14] & 0x07;
|
unsigned char idx = response[14] & 0x07;
|
||||||
if((idx + 8) < response.size())
|
if((idx + 8) < (unsigned char)response.size())
|
||||||
{
|
{
|
||||||
out_buffer[idx] ^= response[idx + 8];
|
out_buffer[idx] ^= response[idx + 8];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue