From f2eb50cc42d4ce9e27c2328016b1ddbc2abab04c Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Fri, 31 Aug 2007 03:25:28 +0000 Subject: [PATCH] Number data constructors from 0 when vectorising --- compiler/vectorise/VectUtils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/vectorise/VectUtils.hs b/compiler/vectorise/VectUtils.hs index 958c5e6..1c72bb7 100644 --- a/compiler/vectorise/VectUtils.hs +++ b/compiler/vectorise/VectUtils.hs @@ -68,7 +68,7 @@ isAnnTypeArg (_, AnnType t) = True isAnnTypeArg _ = False mkDataConTag :: DataCon -> CoreExpr -mkDataConTag = mkIntLitInt . dataConTag +mkDataConTag con = mkIntLitInt (dataConTag con - fIRST_TAG) splitUnTy :: String -> Name -> Type -> Type splitUnTy s name ty -- 1.7.10.4