Readability

This commit is contained in:
Biryuzovye Kleshni 2018-07-30 03:10:48 +00:00
parent 0aaad8b896
commit 192b083d58
1 changed files with 8 additions and 8 deletions

View File

@ -23,14 +23,14 @@ static void encode_big_endian(char *result, unsigned long long number) {
static unsigned long long decode_big_endian(const char *encoded) { static unsigned long long decode_big_endian(const char *encoded) {
return ( return (
((unsigned long long) encoded[0] & 0xff) << 56 | (encoded[0] & 0xffull) << 56 |
((unsigned long long) encoded[1] & 0xff) << 48 | (encoded[1] & 0xffull) << 48 |
((unsigned long long) encoded[2] & 0xff) << 40 | (encoded[2] & 0xffull) << 40 |
((unsigned long long) encoded[3] & 0xff) << 32 | (encoded[3] & 0xffull) << 32 |
((unsigned long long) encoded[4] & 0xff) << 24 | (encoded[4] & 0xffull) << 24 |
((unsigned long long) encoded[5] & 0xff) << 16 | (encoded[5] & 0xffull) << 16 |
((unsigned long long) encoded[6] & 0xff) << 8 | (encoded[6] & 0xffull) << 8 |
((unsigned long long) encoded[7] & 0xff) (encoded[7] & 0xffull)
); );
} }