aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/type.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-24 22:46:06 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-24 22:46:06 +0000
commitb8738b8d582cba01aa1e944426b0251c9c42ff37 (patch)
tree7cebba0d549624fe40ca737178231fb52bd980fb /c_compiler/include/type.hpp
parent42156b87d0bc78eb8bac2c0e1cb41f105bbfc32b (diff)
downloadCompiler-b8738b8d582cba01aa1e944426b0251c9c42ff37.tar.gz
Compiler-b8738b8d582cba01aa1e944426b0251c9c42ff37.zip
Able to store arrays
Diffstat (limited to 'c_compiler/include/type.hpp')
-rw-r--r--c_compiler/include/type.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_compiler/include/type.hpp b/c_compiler/include/type.hpp
index 8c881c1..8c22ab8 100644
--- a/c_compiler/include/type.hpp
+++ b/c_compiler/include/type.hpp
@@ -34,7 +34,7 @@ private:
int size_;
TypePtr type_;
public:
- Array(const int &size, TypePtr type_);
+ Array(const int &size, TypePtr type_ = nullptr);
virtual void print() const;
virtual void printXml() const;