mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 20:18:17 +08:00
fix int
This commit is contained in:
parent
e33e99e268
commit
c8b5ddc0fc
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ static bool TexcomTK15Decode(uint32_t *implengths, uint32_t implengthslen, char
|
|||
if (implengthslen > 2 && implengthslen % 2 != 0) {
|
||||
int lastimplen = implengths[implengthslen - 1];
|
||||
bool prevbit = (implengths[implengthslen - 3] > implengths[implengthslen - 2]);
|
||||
bool thesamebit = (abs(lastimplen - implengths[implengthslen - 3]) < abs(lastimplen - implengths[implengthslen - 2]));
|
||||
bool thesamebit = (abs(lastimplen - (int)implengths[implengthslen - 3]) < abs(lastimplen - (int)implengths[implengthslen - 2]));
|
||||
|
||||
if (prevbit ^ !thesamebit) {
|
||||
strcat(bitstring, "10");
|
||||
|
|
Loading…
Add table
Reference in a new issue