compiler/libec/pass15: Fixed broken watches on Array::array
authorJerome St-Louis <jerome@ecere.com>
Sat, 22 Oct 2016 18:27:20 +0000 (14:27 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 22 Oct 2016 18:52:27 +0000 (14:52 -0400)
- Had been broken by e8319626af9d771518f5c43870eecceb26027fb1

compiler/libec/src/pass15.ec

index 1d9cfdd..02f65a8 100644 (file)
@@ -10729,6 +10729,8 @@ void ProcessExpressionType(Expression exp)
                               if(exp.expType)  exp.expType.refCount++;
                               exp.type = bracketsExp;
                               exp.list = MkListOne(MkExpCast(MkTypeName(specs, MkDeclaratorPointer(MkPointer(null, null), decl)), newExp));
+                              ((Expression)exp.list->first).expType = exp.expType;
+                              if(exp.expType) exp.expType.refCount++;
                               //FreeType(exp.expType);
                               //exp.expType = null;
                               //ProcessExpressionType(sourceExp);