pack.h: Fix clang 5.0 build error.

pack_uint: Cast value to unsigned int.