@@ -104,7 +104,7 @@ extern "C" {
104
104
*pips = new uint64_t [size];
105
105
auto idx = 0 ;
106
106
for (auto pip : ctx->getPips ()) {
107
- *pips[idx] = wrap (pip);
107
+ ( *pips) [idx] = wrap (pip);
108
108
idx++;
109
109
}
110
110
// Yes, by never deleting pip_vec, we leak memory.
@@ -118,7 +118,7 @@ extern "C" {
118
118
*wires = new uint64_t [size];
119
119
auto idx = 0 ;
120
120
for (auto wire : ctx->getWires ()) {
121
- *wires[idx] = wrap (wire);
121
+ ( *wires) [idx] = wrap (wire);
122
122
idx++;
123
123
}
124
124
// Yes, by never deleting wires, we leak memory.
@@ -142,8 +142,8 @@ extern "C" {
142
142
*nets = new NetInfo*[size];
143
143
auto idx = 0 ;
144
144
for (auto & item : ctx->nets ) {
145
- *names[idx] = item.first .index ;
146
- *nets[idx] = item.second .get ();
145
+ ( *names) [idx] = item.first .index ;
146
+ ( *nets) [idx] = item.second .get ();
147
147
idx++;
148
148
}
149
149
// Yes, by never deleting `names` and `nets` we leak memory.
@@ -179,7 +179,7 @@ extern "C" {
179
179
*users = new PortRef*[size];
180
180
auto idx = 0 ;
181
181
for (auto & item : net->users ) {
182
- *users[idx] = &item;
182
+ ( *users) [idx] = &item;
183
183
idx++;
184
184
}
185
185
// Yes, by not freeing `users`, we leak memory.
0 commit comments