Fix a stackoverflow in tests

This commit is contained in:
lazymio 2021-11-21 19:28:45 +01:00
parent 87a391d549
commit 907ec5095d
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -451,7 +451,7 @@ static void test_riscv32_map()
static uint64_t test_riscv64_mmio_map_read_cb(uc_engine *uc, uint64_t offset,
unsigned size, void *data)
{
int r_a4;
uint64_t r_a4;
OK(uc_reg_read(uc, UC_RISCV_REG_A4, &r_a4));
TEST_CHECK(r_a4 == 0x40021 << 12);
TEST_CHECK(offset == 0x21018);