shithub: mc

Download patch

ref: d6284861a168133c0e72078cb4770796d4fb855d
parent: 12b66049f3881fa6b36ed803358c659a96071e16
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Aug 26 15:33:20 EDT 2017

It's not an lvalue.

--- a/parse/type.c
+++ b/parse/type.c
@@ -764,6 +764,7 @@
 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 @@
 		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)