diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 21:56:51 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 21:56:51 +0100 |
| commit | 904fd111bcd539190cf6bcf10f60c29813c7012b (patch) | |
| tree | 9d048a633a63108c7dcc543584e85e5569a9f478 /src/compiler.rs | |
| parent | 0159d05e183f58ae81d4697e0b178a487f0bde34 (diff) | |
| download | sylt-904fd111bcd539190cf6bcf10f60c29813c7012b.tar.gz | |
assign to blob fields
First try babyyyyyyyyy
Diffstat (limited to 'src/compiler.rs')
| -rw-r--r-- | src/compiler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 431a762..78b2671 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -113,7 +113,7 @@ impl Type { match self { Type::Void => Value::Nil, Type::Blob(i) => Value::Blob(*i), - Type::BlobInstance(i) => Value::BlobInstance(*i, Vec::new()), + Type::BlobInstance(i) => Value::BlobInstance(*i, Rc::new(RefCell::new(Vec::new()))), Type::UnknownType => Value::Unkown, Type::Int => Value::Int(1), Type::Float => Value::Float(1.0), |
