Skip to content

Commit

Permalink
fix: incorrectly using terms length for node (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 authored Aug 19, 2024
1 parent 6f2a67e commit 53c6826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-core/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<'a> Context<'a> {
}

pub fn make_node(&mut self, node: model::Node) -> model::NodeId {
let index = self.module.terms.len();
let index = self.module.nodes.len();
self.module.nodes.push(node);
model::NodeId(index as _)
}
Expand Down

0 comments on commit 53c6826

Please sign in to comment.