From 907ec5095d10eb4488547c1d9db08230f73f377e Mon Sep 17 00:00:00 2001 From: lazymio Date: Sun, 21 Nov 2021 19:28:45 +0100 Subject: [PATCH] Fix a stackoverflow in tests --- tests/unit/test_riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_riscv.c b/tests/unit/test_riscv.c index 6192e888..2e38392e 100644 --- a/tests/unit/test_riscv.c +++ b/tests/unit/test_riscv.c @@ -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);