mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
CHG: mostly syntax suger, trying to uniform the look 'n feel.. To make calls act to what is expected.
This commit is contained in:
parent
5eceba292f
commit
2abdfa491c
4 changed files with 67 additions and 104 deletions
|
@ -57,8 +57,7 @@ void num_to_bytes(uint64_t n, size_t len, uint8_t* dest)
|
|||
uint64_t bytes_to_num(uint8_t* src, size_t len)
|
||||
{
|
||||
uint64_t num = 0;
|
||||
while (len--)
|
||||
{
|
||||
while (len--) {
|
||||
num = (num << 8) | (*src);
|
||||
src++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue