c++11 build fix: cstdint

This commit is contained in:
Marius Kintel 2016-01-27 11:52:14 -05:00
parent 176a1e8736
commit 2960e7e8e9
2 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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 {