diff options
author | Adrian Thurston <thurston@complang.org> | 2015-08-08 11:40:19 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-08-08 11:40:19 -0400 |
commit | 42314c5f0f87c45f6968c7c8fcfbfb8eae9f8ad6 (patch) | |
tree | b5d7d144fe4be7181e3cd4c4292ef9efd6b2805e /src/pdabuild.cc | |
parent | 835c359b551831b8272dc71e5feaf702aa189576 (diff) | |
download | colm-42314c5f0f87c45f6968c7c8fcfbfb8eae9f8ad6.tar.gz |
moved MethodMap into NameScope, converted some ptrs to objs
Diffstat (limited to 'src/pdabuild.cc')
-rw-r--r-- | src/pdabuild.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdabuild.cc b/src/pdabuild.cc index 4efe142d..707f113d 100644 --- a/src/pdabuild.cc +++ b/src/pdabuild.cc @@ -1294,7 +1294,7 @@ struct local_info *Compiler::makeLocalInfo( Locals &locals ) short *Compiler::makeTrees( ObjectDef *objectDef, int &numTrees ) { numTrees = 0; - for ( FieldList::Iter of = *objectDef->fieldList; of.lte(); of++ ) { + for ( FieldList::Iter of = objectDef->fieldList; of.lte(); of++ ) { if ( of->value->exists() ) { UniqueType *ut = of->value->typeRef->resolveType( this ); if ( ut->typeId == TYPE_TREE ) @@ -1306,7 +1306,7 @@ short *Compiler::makeTrees( ObjectDef *objectDef, int &numTrees ) memset( trees, 0, sizeof(short) * numTrees ); short pos = 0; - for ( FieldList::Iter of = *objectDef->fieldList; of.lte(); of++ ) { + for ( FieldList::Iter of = objectDef->fieldList; of.lte(); of++ ) { if ( of->value->exists() ) { UniqueType *ut = of->value->typeRef->resolveType( this ); if ( ut->typeId == TYPE_TREE ) { |