c++11 build fix: cstdint
This commit is contained in:
parent
176a1e8736
commit
2960e7e8e9
2 changed files with 6 additions and 4 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "expression.h"
|
||||
#include "builtin.h"
|
||||
#include "printutils.h"
|
||||
#include <cstdint>
|
||||
#include <sstream>
|
||||
|
||||
class ControlModule : public AbstractModule
|
||||
|
|
@ -74,7 +75,7 @@ void ControlModule::for_eval(AbstractNode &node, const ModuleInstantiation &inst
|
|||
Context c(ctx);
|
||||
if (it_values->type() == Value::RANGE) {
|
||||
RangeType range = it_values->toRange();
|
||||
boost::uint32_t steps = range.numValues();
|
||||
uint32_t steps = range.numValues();
|
||||
if (steps >= 10000) {
|
||||
PRINTB("WARNING: Bad range parameter in for statement: too many elements (%lu).", steps);
|
||||
} else {
|
||||
|
|
@ -232,7 +233,7 @@ AbstractNode *ControlModule::instantiate(const Context* /*ctx*/, const ModuleIns
|
|||
}
|
||||
else if (value->type() == Value::RANGE) {
|
||||
RangeType range = value->toRange();
|
||||
boost::uint32_t steps = range.numValues();
|
||||
uint32_t steps = range.numValues();
|
||||
if (steps >= 10000) {
|
||||
PRINTB("WARNING: Bad range parameter for children: too many elements (%lu).", steps);
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include "expression.h"
|
||||
#include "value.h"
|
||||
#include "evalcontext.h"
|
||||
#include <cstdint>
|
||||
#include <assert.h>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
|
@ -565,7 +566,7 @@ ValuePtr ExpressionLcEach::evaluate(const Context *context) const
|
|||
|
||||
if (v->type() == Value::RANGE) {
|
||||
RangeType range = v->toRange();
|
||||
boost::uint32_t steps = range.numValues();
|
||||
uint32_t steps = range.numValues();
|
||||
if (steps >= 1000000) {
|
||||
PRINTB("WARNING: Bad range parameter in for statement: too many elements (%lu).", steps);
|
||||
} else {
|
||||
|
|
@ -615,7 +616,7 @@ ValuePtr ExpressionLcFor::evaluate(const Context *context) const
|
|||
|
||||
if (it_values->type() == Value::RANGE) {
|
||||
RangeType range = it_values->toRange();
|
||||
boost::uint32_t steps = range.numValues();
|
||||
uint32_t steps = range.numValues();
|
||||
if (steps >= 1000000) {
|
||||
PRINTB("WARNING: Bad range parameter in for statement: too many elements (%lu).", steps);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue