summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-28 21:30:58 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-29 22:36:12 -0800
commitc5649fe3ddc066335f816d59a4f31b9c26b1c230 (patch)
treeaaad3f24ac5aeab620963dbc9888adbfdcb39d8c /parse/specialize.c
parent284e7bb9bee1f03a7792347dd0da3a0c5dd2fbb4 (diff)
downloadmc-c5649fe3ddc066335f816d59a4f31b9c26b1c230.tar.gz
Clean up type inference a bit.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 7a526bb..142c261 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -57,7 +57,7 @@ Type *tyspecialize(Type *orig, Htab *tsmap, Htab *delayed)
ret->issynth = 1;
ret->arg = arg;
ret->narg = narg;
- *var = *ret;
+ tytab[var->tid] = ret;
break;
case Tyname:
if (!hasparams(t))