diff options
| author | WormHeamer | 2025-10-27 22:31:45 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-10-27 22:31:45 -0400 |
| commit | 5101eff82939d1d2c9595a37602a892d7da6c8fb (patch) | |
| tree | 571a13921b440fd84445f467e466eff12e22cd84 | |
| parent | c66ed677a1b25f77e776ade5e86e6be5852adec5 (diff) | |
fix node_set_in() setting always index 0
| -rw-r--r-- | ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,7 +88,7 @@ void node_set_in(Graph *p, Node *n, int idx, Node *to) { if (in) in->refs--; node_add_out(p, to, n); node_del_out(in, n); - IN(n, 0) = to; + IN(n, idx) = to; if (in->out.len < 1) node_kill(in, p); } |
