FIX: & 0xFF instead of uint8_t

This commit is contained in:
iceman1001 2016-11-16 18:38:15 +01:00
parent 1ca5dce0f4
commit 7d159efe40

View file

@ -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;
}
}