the variable labeling should start with 0.

This commit is contained in:
krangelov
2021-12-03 15:00:04 +01:00
parent 348963d13c
commit 655576c291
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ param2int (VMeta tnk _ _) = do
Evaluated v -> param2int v
Narrowing j ty -> do let QC q = valTypeCnc ty
(_,ResParam _ (Just (_,cnt))) <- getInfo q
return (0,[(1,j)],cnt)
return (0,[(1,j-1)],cnt)
param2int v = do t <- value2term 0 v
evalError ("the parameter:" <+> ppTerm Unqualified 0 t $$
"cannot be evaluated at compile time.")