diff options
Diffstat (limited to 'bootstrap/types.c')
| -rw-r--r-- | bootstrap/types.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bootstrap/types.c b/bootstrap/types.c index 4b4e5be..38d75d0 100644 --- a/bootstrap/types.c +++ b/bootstrap/types.c @@ -156,13 +156,12 @@ const struct type * interntype(struct type ty) { static int id; if (!ty.align) - ty.align = ty.size; + ty.align = ty.size ? ty.size : 1; const struct type *ty2 = typesfind(&ty); if (ty2) return ty2; ty._id = id++; ty2 = typesput(&ty); - // epri("new %t, h = %d. %d\n", ty2, hashtype(ty2), ty2->agg.id); assert(ty2); return ty2; } |