aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/include')
-rw-r--r--c_compiler/include/bindings.hpp4
-rw-r--r--c_compiler/include/expression.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/c_compiler/include/bindings.hpp b/c_compiler/include/bindings.hpp
index 512e426..367986d 100644
--- a/c_compiler/include/bindings.hpp
+++ b/c_compiler/include/bindings.hpp
@@ -24,7 +24,7 @@ class VariableStackBindings
private:
std::map<std::string, DeclarationData> bindings_;
int stack_counter_;
- unsigned expression_stack_;
+ int expression_stack_;
public:
VariableStackBindings();
@@ -37,7 +37,7 @@ public:
int currentStackPosition() const;
int stackPosition(const std::string& id) const;
- unsigned currentExpressionStackPosition() const;
+ int currentExpressionStackPosition() const;
bool bindingExists(const std::string& id) const;
};
diff --git a/c_compiler/include/expression.hpp b/c_compiler/include/expression.hpp
index ae186d1..dc2b2e9 100644
--- a/c_compiler/include/expression.hpp
+++ b/c_compiler/include/expression.hpp
@@ -1,5 +1,5 @@
-#ifndef AST_EXPRESSION_HPP
-#define AST_EXPRESSION_HPP
+#ifndef EXPRESSION_HPP
+#define EXPRESSION_HPP
#include "node.hpp"
#include "bindings.hpp"