Use the right byte order for unaligned stores. <blush>.

This commit is contained in:
Jake Burkholder 2002-05-13 22:48:01 +00:00
parent d0b3489447
commit 5893472b2d

View File

@ -52,7 +52,7 @@ __unaligned_store(u_char *p, u_long val, int size)
int i;
for (i = 0; i < size; i++)
p[i] = val >> (i * 8);
p[i] = val >> ((size - i - 1) * 8);
}
int