diff options
Diffstat (limited to 'src/projection.cc')
-rw-r--r-- | src/projection.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projection.cc b/src/projection.cc index d3e7e94..1fcf639 100644 --- a/src/projection.cc +++ b/src/projection.cc @@ -58,10 +58,10 @@ AbstractNode *ProjectionModule::evaluate(const Context *ctx, const ModuleInstant Value convexity = c.lookup_variable("convexity", true); Value cut = c.lookup_variable("cut", true); - node->convexity = (int)convexity.num; + node->convexity = (int)convexity.toDouble(); - if (cut.type == Value::BOOL) - node->cut_mode = cut.b; + if (cut.type() == Value::BOOL) + node->cut_mode = cut.toBool(); std::vector<AbstractNode *> evaluatednodes = inst->evaluateChildren(); node->children.insert(node->children.end(), evaluatednodes.begin(), evaluatednodes.end()); |