We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20a5844 commit c3e2177Copy full SHA for c3e2177
src/comp_types/comp.cpp
@@ -28,13 +28,14 @@ using namespace GanakInt;
28
29
Comp* GanakInt::copy_comp(const Comp* other, const Counter* counter) {
30
Comp* ptr = reserve_comp_space(other->nVars(), other->num_long_cls());
31
+ ptr->clear();
32
const uint32_t* p = other->vs_cls_data();
33
while(*p != sentinel) {
34
if (counter->is_unknown(*p)) ptr->add_var(*p);
35
p++;
36
}
37
ptr->close_vars_data();
- p++;
38
+ p++; // skip sentinel
39
40
ptr->add_cl(*p);
41
0 commit comments