ref: caa829c88284e8ac2c213d178f62943548d9b7ad
parent: 0d44442f0e5519ca65eb787896fbed5ac9246ab1
author: Ori Bernstein <[email protected]>
date: Sat Jan 19 09:53:21 EST 2013
Add more comments.
--- a/6/simp.c
+++ b/6/simp.c
@@ -566,6 +566,7 @@
return r;
}
+/* gets the byte offset of 'memb' within the aggregate type 'aggr' */
static size_t offset(Node *aggr, Node *memb)
{
Type *ty;
@@ -780,6 +781,7 @@
tystr(exprtype(val)), tystr(to));
}
break;
+ /* no other destination types are handled as things stand */
default:
fatal(val->line, "Bad cast from %s to %s",
tystr(exprtype(val)), tystr(to));