diff src/cjr_env.sml @ 182:d11754ffe252

Compiled pattern matching to C
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 12:43:20 -0400
parents 31dfab1d4050
children 8e9f97508f0d
line wrap: on
line diff
--- a/src/cjr_env.sml	Sun Aug 03 11:17:33 2008 -0400
+++ b/src/cjr_env.sml	Sun Aug 03 12:43:20 2008 -0400
@@ -61,8 +61,8 @@
 
 fun pushDatatype (env : env) x n xncs =
     {datatypes = IM.insert (#datatypes env, n, (x, xncs)),
-     constructors = foldl (fn ((x, n, to), constructors) =>
-                              IM.insert (constructors, n, (x, to, n)))
+     constructors = foldl (fn ((x, n', to), constructors) =>
+                              IM.insert (constructors, n', (x, to, n)))
                           (#constructors env) xncs,
 
      numRelE = #numRelE env,