mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Fix syntax error
This commit is contained in:
parent
87a55612ae
commit
6aedaa14ee
@ -101,7 +101,7 @@ inline void SimpleMultiset<Elt>::copy(const SimpleMultiset &src)
|
||||
nNodes = src.nNodes;
|
||||
Node **link = &nodes;
|
||||
for (const Node *srcNode = src.nodes; srcNode; srcNode = srcNode->next) {
|
||||
Node *dstNode = new Node(srcNode.element, srcNode.count);
|
||||
Node *dstNode = new Node(srcNode->element, srcNode->count);
|
||||
*link = dstNode;
|
||||
link = &dstNode->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user