Fixed bitreader to work correctly for signed 64-bit integers
This commit is contained in:
parent
38db7a2cf5
commit
54b0f9f7b2
2 changed files with 9 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue