From 9850809890076f13bca3d5e6e0fcc050ad647c8d Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 11 Jan 2015 19:39:23 -0500 Subject: Revert "C++ is just a giant pain in the ass" This reverts commit 4743027a22ae4e622d7e78f878eff307d02ac373. --- test/test-dis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test-dis.c') diff --git a/test/test-dis.c b/test/test-dis.c index 8b4a2b3..127b0b4 100644 --- a/test/test-dis.c +++ b/test/test-dis.c @@ -1,13 +1,13 @@ #include #include "dis.h" unsigned f(unsigned x) { - struct bitslice addr = {.nruns = 4, .runs = {{0,0,4}, {5,5,7}, {16,13,4}, {23,12,1}}}; - return bs_get(&addr, x); + struct bitslice addr = {.nruns = 4, .runs = (struct bitslice_run[]) {{0,0,4}, {5,5,7}, {16,13,4}, {23,12,1}}}; + return bs_get(addr, x); } unsigned fs(unsigned val, unsigned op) { - struct bitslice addr = {.nruns = 4, .runs = {{0,0,4}, {5,5,7}, {16,13,4}, {23,12,1}}}; - return bs_set(&addr, val, op); + struct bitslice addr = {.nruns = 4, .runs = (struct bitslice_run[]) {{0,0,4}, {5,5,7}, {16,13,4}, {23,12,1}}}; + return bs_set(addr, val, op); } int main() { -- cgit v1.2.3