Fix str_pack_u16() argument

This commit is contained in:
Přemysl Eric Janouch 2015-05-02 22:33:10 +02:00
parent 6605ba87db
commit c8238a5764
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ str_pack_u8 (struct str *self, uint8_t x)
}
static void
str_pack_u16 (struct str *self, uint64_t x)
str_pack_u16 (struct str *self, uint16_t x)
{
uint8_t tmp[2] = { x >> 8, x };
str_append_data (self, tmp, sizeof tmp);