Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70bf37d
)
compiler/libec: Fixed a bug where ProcessType would fail on parsing [union typename...
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 15 Feb 2012 08:05:23 +0000
(15:05 +0700)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 15 Feb 2012 08:05:23 +0000
(15:05 +0700)
compiler/libec/src/ast.ec
patch
|
blob
|
history
diff --git
a/compiler/libec/src/ast.ec
b/compiler/libec/src/ast.ec
index
9db7cdd
..
44a552e
100644
(file)
--- a/
compiler/libec/src/ast.ec
+++ b/
compiler/libec/src/ast.ec
@@
-2007,7
+2007,7
@@
public Type ProcessType(OldList specs, Declarator decl)
specType.keepCast = true;
}
- if(spec
Type.kind == structType || specType.kind == unionType
)
+ if(spec
.specifier != CONST && (specType.kind == structType || specType.kind == unionType)
)
{
FreeType(specType);
specType = { kind = intType, isSigned = true, refCount = 1 };