Changes in / [4162aea9:1136d96]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r4162aea9 r1136d96 159 159 160 160 if ( ArrayType * at = dynamic_cast< ArrayType * >( new_type ) ){ 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 ); 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 } 166 168 } 167 169 }
Note: See TracChangeset
for help on using the changeset viewer.