Added some extra paranoid bracketing
This commit is contained in:
parent
34ae9861d0
commit
3739ff7cbd
|
@ -690,7 +690,7 @@ cgenVariableWithAM checkValid v am fct
|
||||||
A.SubscriptFromFor m' subCheck start count
|
A.SubscriptFromFor m' subCheck start count
|
||||||
-> do ct <- details v
|
-> do ct <- details v
|
||||||
return (do let check = if checkValid then subCheck else A.NoCheck
|
return (do let check = if checkValid then subCheck else A.NoCheck
|
||||||
tell ["(&"]
|
tell ["(&("]
|
||||||
cgenVariableWithAM checkValid v A.Original id
|
cgenVariableWithAM checkValid v A.Original id
|
||||||
call genArraySubscript A.NoCheck v [(m',
|
call genArraySubscript A.NoCheck v [(m',
|
||||||
case check of
|
case check of
|
||||||
|
@ -705,7 +705,7 @@ cgenVariableWithAM checkValid v am fct
|
||||||
genMeta m'
|
genMeta m'
|
||||||
tell [")"]
|
tell [")"]
|
||||||
)]
|
)]
|
||||||
tell [")"]
|
tell ["))"]
|
||||||
, ct)
|
, ct)
|
||||||
-- | Collect all the plain subscripts on a variable, so we can combine them.
|
-- | Collect all the plain subscripts on a variable, so we can combine them.
|
||||||
collectSubs :: A.Variable -> CGen ([A.Expression], A.Variable, A.Type)
|
collectSubs :: A.Variable -> CGen ([A.Expression], A.Variable, A.Type)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user