mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix: shifting signed 32-bit value by 31 bits is undefined behaviour
This commit is contained in:
parent
4aeff95259
commit
d9308d912d
4 changed files with 7 additions and 7 deletions
|
@ -191,7 +191,7 @@ int CmdTIDemod(const char *Cmd) {
|
|||
bits[i] = '1';
|
||||
maxPos += highLen;
|
||||
// bitstream arrives lsb first so shift right
|
||||
shift3 |= (1 << 31);
|
||||
shift3 |= (1u << 31);
|
||||
} else {
|
||||
bits[i] = '.';
|
||||
maxPos += lowLen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue