summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.h b/src/node.h
index 9127ae1..8b6e83c 100644
--- a/src/node.h
+++ b/src/node.h
@@ -23,7 +23,7 @@ class AbstractNode
// We can hash on pointer value or smth. else.
// -> remove and
// use smth. else to display node identifier in CSG tree output?
- static int idx_counter; // Node instantiation index
+ static size_t idx_counter; // Node instantiation index
public:
AbstractNode(const class ModuleInstantiation *mi);
virtual ~AbstractNode();
@@ -38,7 +38,7 @@ public:
const std::list<AbstractNode*> getChildren() const {
return this->children.toList().toStdList();
}
- int index() const { return this->idx; }
+ size_t index() const { return this->idx; }
static void resetIndexCounter() { idx_counter = 1; }
contact: Jan Huwald // Impressum