diff options
author | Torsten Paul <Torsten.Paul@gmx.de> | 2013-11-15 18:41:37 (GMT) |
---|---|---|
committer | Torsten Paul <Torsten.Paul@gmx.de> | 2013-11-15 18:41:37 (GMT) |
commit | f46bd3788f75e691b65aaf0e4ffb1db1029ef717 (patch) | |
tree | 118843f04ff826255387e7886fe38573dbae7d8e /src/control.cc | |
parent | 1fcad169e623d776eb297c324304fb6836ec1e62 (diff) |
Change nbsteps() to uint32_t to make it independent from 32/64-bit platform.
Diffstat (limited to 'src/control.cc')
-rw-r--r-- | src/control.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control.cc b/src/control.cc index 6b10a28..d5f664e 100644 --- a/src/control.cc +++ b/src/control.cc @@ -78,7 +78,7 @@ void ControlModule::for_eval(AbstractNode &node, const ModuleInstantiation &inst Context c(ctx); if (it_values.type() == Value::RANGE) { Value::RangeType range = it_values.toRange(); - unsigned long steps = range.nbsteps(); + uint32_t steps = range.nbsteps(); if (steps >= 10000) { PRINTB("WARNING: Bad range parameter in for statement: too many elements (%lu).", steps); } else { @@ -229,7 +229,7 @@ AbstractNode *ControlModule::instantiate(const Context* /*ctx*/, const ModuleIns else if (value.type() == Value::RANGE) { AbstractNode* node = new AbstractNode(inst); Value::RangeType range = value.toRange(); - unsigned long steps = range.nbsteps(); + uint32_t steps = range.nbsteps(); if (steps >= 10000) { PRINTB("WARNING: Bad range parameter for children: too many elements (%lu).", steps); return NULL; |