From ea95e3d02cb26168e52fd94aad125f6927099302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Thu, 26 Jan 2017 23:27:54 +0100 Subject: [PATCH] Fix pointer mess. --- test/test_stepping.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_stepping.c b/test/test_stepping.c index 5d917e1..f2c9e8f 100644 --- a/test/test_stepping.c +++ b/test/test_stepping.c @@ -15,15 +15,15 @@ ATF_TC_BODY(step1, tc) b = bus_init(); e = rk65c02_init(&b); - e->regs.PC = ROM_LOAD_ADDR; + e.regs.PC = ROM_LOAD_ADDR; - ATF_REQUIRE(bus_load_file(e->bus, ROM_LOAD_ADDR, + ATF_REQUIRE(bus_load_file(&b, ROM_LOAD_ADDR, "test_stepping_step1.rom")); - rk65c02_step(e, 1); - ATF_CHECK(e->regs.PC == ROM_LOAD_ADDR+1); - rk65c02_step(e, 1); - ATF_CHECK(e->regs.PC == ROM_LOAD_ADDR+2); + rk65c02_step(&e, 1); + ATF_CHECK(e.regs.PC == ROM_LOAD_ADDR+1); + rk65c02_step(&e, 1); + ATF_CHECK(e.regs.PC == ROM_LOAD_ADDR+2); } ATF_TP_ADD_TCS(tp)