aboutsummaryrefslogtreecommitdiff
path: root/test/test-dis.c
diff options
context:
space:
mode:
authorcomex2015-01-11 15:33:25 -0500
committercomex2015-01-11 15:33:25 -0500
commit4743027a22ae4e622d7e78f878eff307d02ac373 (patch)
treede3c834fa1812bf194948b466074c7626b878227 /test/test-dis.c
parentyay? (diff)
downloadsubstitute-4743027a22ae4e622d7e78f878eff307d02ac373.tar.gz
C++ is just a giant pain in the ass
Diffstat (limited to 'test/test-dis.c')
-rw-r--r--test/test-dis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-dis.c b/test/test-dis.c
index 127b0b4..8b4a2b3 100644
--- a/test/test-dis.c
+++ b/test/test-dis.c
@@ -1,13 +1,13 @@
#include <stdio.h>
#include "dis.h"
unsigned f(unsigned 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);
+ struct bitslice addr = {.nruns = 4, .runs = {{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 = (struct bitslice_run[]) {{0,0,4}, {5,5,7}, {16,13,4}, {23,12,1}}};
- return bs_set(addr, val, 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);
}
int main() {