From 2960e7e8e989541cbf6146500794d100b6ad6499 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 27 Jan 2016 11:52:14 -0500 Subject: [PATCH] c++11 build fix: cstdint --- src/control.cc | 5 +++-- src/expr.cc | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/control.cc b/src/control.cc index d2385ac4..40cd3899 100644 --- a/src/control.cc +++ b/src/control.cc @@ -31,6 +31,7 @@ #include "expression.h" #include "builtin.h" #include "printutils.h" +#include #include 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; diff --git a/src/expr.cc b/src/expr.cc index d225f13b..87261643 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -26,6 +26,7 @@ #include "expression.h" #include "value.h" #include "evalcontext.h" +#include #include #include #include @@ -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 {