Mistake in interface assumptions...
authorbdemsky <bdemsky>
Mon, 1 Mar 2004 17:29:14 +0000 (17:29 +0000)
committerbdemsky <bdemsky>
Mon, 1 Mar 2004 17:29:14 +0000 (17:29 +0000)
Repair/RepairCompiler/MCC/IR/StructureTypeDescriptor.java

index 32d38f5..7b6e514 100755 (executable)
@@ -43,7 +43,7 @@ public class StructureTypeDescriptor extends TypeDescriptor {
     public Expr getOffsetExpr(FieldDescriptor field) {
        /* Fix sizeof calculations */
        if ((field==null)&&(subtype!=null))
-           return subtype.getOFfsetExpr(field);
+           return subtype.getSizeExpr();
 
        boolean aligned=true;
         Expr size = new IntegerLiteralExpr(0);