CHG: mostly syntax suger, trying to uniform the look 'n feel.. To make calls act to what is expected.

This commit is contained in:
iceman1001 2016-04-10 12:56:59 +02:00
commit 2abdfa491c
4 changed files with 67 additions and 104 deletions

View file

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