Commit cee24ee2 authored by npzacs's avatar npzacs
Browse files

Fix shift

parent d92b2485
......@@ -24,7 +24,7 @@
#define MKINT_BE16(X) ( (X)[0] << 8 | (X)[1] )
#define MKINT_BE24(X) ( (X)[0] << 16 | (X)[1] << 8 | (X)[2] )
#define MKINT_BE32(X) ( (X)[0] << 24 | (X)[1] << 16 | (X)[2] << 8 | (X)[3] )
#define MKINT_BE32(X) ( (uint32_t)(X)[0] << 24 | (X)[1] << 16 | (X)[2] << 8 | (X)[3] )
#define MKINT_BE48(X) ( (uint64_t)((X)[0]) << 40 | (uint64_t)((X)[1]) << 32 | (uint64_t)((X)[2]) << 24 | \
(uint64_t)((X)[3]) << 16 | (uint64_t)((X)[4]) << 8 | (uint64_t)((X)[5]) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment