Fixed bitreader to work correctly for signed 64-bit integers

This commit is contained in:
Dan Hirsch 2012-05-23 01:02:31 +02:00
parent 38db7a2cf5
commit 54b0f9f7b2
2 changed files with 9 additions and 2 deletions

View file

@ -895,7 +895,7 @@ static void test_int32(void) {
static void test_int16(void) {
const parser_t *int16_ = int16();
g_check_parse_ok(int16_, "\xfe\x00", 2, "s0x200");
g_check_parse_ok(int16_, "\xfe\x00", 2, "s-0x200");
g_check_parse_failed(int16_, "\xfe", 1);
}