forked from GitHub/gf-core
bugfix in the conversion of parameters to numbers
This commit is contained in:
@@ -192,7 +192,7 @@ param2int (VR as) (RecType lbls) = compute lbls
|
|||||||
param2int (VApp q tnks) ty = do
|
param2int (VApp q tnks) ty = do
|
||||||
(r , ctxt,cnt ) <- getIdxCnt q
|
(r , ctxt,cnt ) <- getIdxCnt q
|
||||||
(r',rs', cnt') <- compute ctxt tnks
|
(r',rs', cnt') <- compute ctxt tnks
|
||||||
return (r+r',rs',cnt*cnt')
|
return (r+r',rs',cnt)
|
||||||
where
|
where
|
||||||
getIdxCnt q = do
|
getIdxCnt q = do
|
||||||
(_,ResValue (L _ ty) idx) <- getInfo q
|
(_,ResValue (L _ ty) idx) <- getInfo q
|
||||||
|
|||||||
Reference in New Issue
Block a user