shithub: mc

Download patch

ref: 65d803f25c3311d3918a743ce174350abe2b5833
parent: b61653aec1b32d98adbde2d9ff1a34ff412f8e94
author: Ori Bernstein <[email protected]>
date: Sun May 13 10:38:57 EDT 2012

Fix size calculations.

    I forgot to return the value.

--- a/8/reduce.c
+++ b/8/reduce.c
@@ -102,6 +102,7 @@
         case Tystruct:
             for (i = 0; i < t->nmemb; i++)
                 sz += size(t->sdecls[i]);
+            return sz;
             break;
         case Tyunion:
             die("Sizes for composite types not implemented yet");