diff options
Diffstat (limited to 'flowgraph/node.cpp')
-rw-r--r-- | flowgraph/node.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/flowgraph/node.cpp b/flowgraph/node.cpp index 8e8b5eb..d7ed939 100644 --- a/flowgraph/node.cpp +++ b/flowgraph/node.cpp @@ -1,10 +1,9 @@ #include "node.h" +#include "byteorder.h" #include "data.h" #include "minicc.h" -#include <boost/endian/conversion.hpp> - #include <memory> using namespace FlowGraph; @@ -20,7 +19,7 @@ FlowGraph::Data& Node::destination() // 4 byte for now Data FlowGraph::MakeConstantInt(int i) { - return Data{DataType::Int, std::make_shared<Constant>(to_little_endian(int32_t(i)))}; + return Data{DataType::Int, std::make_shared<Constant>(endian::to_little(uint32_t(i)))}; } Data FlowGraph::MakeLocalPointer(std::shared_ptr<FlowGraph::LocalScope> scope, const std::string& name) |