fix mismatched expectations of generated vars arrays

This commit is contained in:
Chris Jones 2009-09-16 17:41:04 -05:00
Родитель c3c18d55f1
Коммит 158b0df113
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1699,6 +1699,7 @@ class GenerateProtocolActorHeader(Visitor):
if (p.type._union is None
or not p.type._union.hasActor):
wasrepackedvars.append(None)
newunionvars.append(None)
continue
pvar = cxx.ExprVar(p.name)
@ -1763,6 +1764,7 @@ class GenerateProtocolActorHeader(Visitor):
switches.append(switch)
for newunion in newunionvars:
if newunion is None: continue
decl, _ = newunion
impl.addstmt(decl)