summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-26 19:33:20 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-26 19:33:20 -0700
commitd6284861a168133c0e72078cb4770796d4fb855d (patch)
treefe6b6254a2b04027d0426f66d9bbf1d759297aaf /parse
parent12b66049f3881fa6b36ed803358c659a96071e16 (diff)
downloadmc-d6284861a168133c0e72078cb4770796d4fb855d.tar.gz
It's not an lvalue.
Diffstat (limited to 'parse')
-rw-r--r--parse/type.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/type.c b/parse/type.c
index 4d17c37..1b9ffca 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -764,6 +764,7 @@ int
tyeq_rec(Type *a, Type *b, Bitset *avisited, Bitset *bvisited, int search)
{
Type *x, *y;
+ Typair p;
size_t i;
int ret;
@@ -781,7 +782,8 @@ tyeq_rec(Type *a, Type *b, Bitset *avisited, Bitset *bvisited, int search)
return 0;
if (a->nmemb != b->nmemb)
return 0;
- if (hthas(eqcache, &(Typair){a->tid, b->tid}))
+ p = (Typair){a->tid, b->tid};
+ if (hthas(eqcache, &p))
return 1;
if (a->tid == b->tid)