1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

removed an unnecessary shift and splut up som weird two-statements-per-line

code
This commit is contained in:
Daniel Stenberg 2004-03-01 12:54:59 +00:00
parent 87e7f4f688
commit 4d12be9867

View File

@ -65,9 +65,11 @@ static void decodeQuantum(unsigned char *dest, const char *src)
x = (x << 6); x = (x << 6);
} }
dest[2] = (unsigned char)(x & 255); x >>= 8; dest[2] = (unsigned char)(x & 255);
dest[1] = (unsigned char)(x & 255); x >>= 8; x >>= 8;
dest[0] = (unsigned char)(x & 255); x >>= 8; dest[1] = (unsigned char)(x & 255);
x >>= 8;
dest[0] = (unsigned char)(x & 255);
} }
/* /*