Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4b9769f
)
compiler/libec: (#1042) Fixed missing parentheses indexing Array::array
author
Jerome St-Louis
<jerome@ecere.com>
Sat, 16 Jul 2016 22:16:41 +0000
(18:16 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Sat, 16 Jul 2016 22:16:41 +0000
(18:16 -0400)
compiler/libec/src/pass15.ec
patch
|
blob
|
history
diff --git
a/compiler/libec/src/pass15.ec
b/compiler/libec/src/pass15.ec
index
0dbfdb8
..
ea671b1
100644
(file)
--- a/
compiler/libec/src/pass15.ec
+++ b/
compiler/libec/src/pass15.ec
@@
-10715,9
+10715,8
@@
void ProcessExpressionType(Expression exp)
*newExp = *exp;
if(exp.destType) exp.destType.refCount++;
if(exp.expType) exp.expType.refCount++;
- exp.type = castExp;
- exp.cast.typeName = MkTypeName(specs, MkDeclaratorPointer(MkPointer(null, null), decl));
- exp.cast.exp = newExp;
+ exp.type = bracketsExp;
+ exp.list = MkListOne(MkExpCast(MkTypeName(specs, MkDeclaratorPointer(MkPointer(null, null), decl)), newExp));
//FreeType(exp.expType);
//exp.expType = null;
//ProcessExpressionType(sourceExp);