Changes in / [1136d96:4162aea9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r1136d96 r4162aea9 159 159 160 160 if ( ArrayType * at = dynamic_cast< ArrayType * >( new_type ) ){ 161 if ( at->get_dimension() ) { 162 BasicType arrayLenType = BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ); 163 CastExpr *castExpr = new CastExpr( at->get_dimension(), arrayLenType.clone() ); 164 Expression *newExpr = findSingleExpression( castExpr, *this ); 165 delete at->get_dimension(); 166 at->set_dimension( newExpr ); 167 } 161 BasicType arrayLenType = BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ); 162 CastExpr *castExpr = new CastExpr( at->get_dimension(), arrayLenType.clone() ); 163 Expression *newExpr = findSingleExpression( castExpr, *this ); 164 delete at->get_dimension(); 165 at->set_dimension( newExpr ); 168 166 } 169 167 }
Note: See TracChangeset
for help on using the changeset viewer.