shithub: mc

Download patch

ref: 23318a8d0b76e1a3c52ca744cd4e2ec863e4396d
parent: 90a6c98e077f034a9a89e347a331bda92d7c5181
author: Ori Bernstein <[email protected]>
date: Sun Oct 7 21:00:27 EDT 2012

Make tybase work with generic types.

    We didn't walk down them. Oops.

--- a/parse/type.c
+++ b/parse/type.c
@@ -279,7 +279,7 @@
 Type *tybase(Type *t)
 {
     assert(t != NULL);
-    while (t->type == Tyname)
+    while (t->type == Tyname || t->type == Tygeneric)
         t = t->sub[0];
     return t;
 }