mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
FIX: & 0xFF instead of uint8_t
This commit is contained in:
parent
1ca5dce0f4
commit
7d159efe40
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ char *sprint_hex_ascii(const uint8_t *data, const size_t len) {
|
|||
|
||||
void num_to_bytes(uint64_t n, size_t len, uint8_t* dest) {
|
||||
while (len--) {
|
||||
dest[len] = (uint8_t) n;
|
||||
dest[len] = n & 0xFF;
|
||||
n >>= 8;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue