diff src/core_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 5d030ee143e2
children 9bbf4d383381
line wrap: on
line diff
--- a/src/core_env.sml	Sun Aug 03 11:17:33 2008 -0400
+++ b/src/core_env.sml	Sun Aug 03 12:43:20 2008 -0400
@@ -113,8 +113,8 @@
      namedC = #namedC env,
 
      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,
      
      relE = #relE env,