small update type check
[cc1516.git] / gen.icl
diff --git a/gen.icl b/gen.icl
index b6e22d6..25a4e6f 100644 (file)
--- a/gen.icl
+++ b/gen.icl
@@ -350,18 +350,18 @@ instance g Stmt where
 //and leaves the heap adress to write to on the stack
 followFs :: [FieldSelector] -> Gen()
 followFs [] = tell []
-followFs [FieldHd:fs] = tell [Instr "ldc" [Lit 1] "select hd"
+followFs [FieldHd:fs]   = tell [Instr "ldc" [Lit 1] "select hd"
                              ,Instr "sub" [] "select hd"]
-                        >>| followFs fs
-followFs [FieldTl] = tell []
-followFs [FieldTl:fs] = tell [Instr "lda" [Lit 0] ""]
-                        >>| followFs fs
-followFs [FieldFst:fs] = tell [Instr "ldc" [Lit 1] "select fst"
+                            >>| followFs fs
+followFs [FieldTl]      = tell []
+followFs [FieldTl:fs]   = tell [Instr "lda" [Lit 0] ""]
+                            >>| followFs fs
+followFs [FieldFst:fs]  = tell [Instr "ldc" [Lit 1] "select fst"
                                 ,Instr "sub" [] "select fst"]
                             >>| followFs fs
-followFs [FieldSnd:fs] = tell [Instr "lda" [Lit 0] ""]
-                        >>| followFs fs
-followFs [FieldSnd] = tell []
+followFs [FieldSnd:fs]  = tell [Instr "lda" [Lit 0] ""]
+                            >>| followFs fs
+followFs [FieldSnd]     = tell []
 
 foldVarDecl :: Int VarDecl -> Gen Int
 foldVarDecl x (VarDecl _ mt k e) = g e