Commit 5c236c46 by Marcus Winter

mtapi_cpp: fixed bug in conversion of core_set

parent dec53607
...@@ -152,7 +152,7 @@ void Node::Initialize( ...@@ -152,7 +152,7 @@ void Node::Initialize(
assert(MTAPI_SUCCESS == status); assert(MTAPI_SUCCESS == status);
embb_core_set_t cs; embb_core_set_t cs;
embb_core_set_init(&cs, 0); embb_core_set_init(&cs, 0);
for (unsigned int ii = 0; ii < core_set.Count(); ii++) { for (unsigned int ii = 0; embb_core_set_count(&cs) < core_set.Count(); ii++) {
if (core_set.IsContained(ii)) { if (core_set.IsContained(ii)) {
embb_core_set_add(&cs, ii); embb_core_set_add(&cs, ii);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment