Changes in src/Parser/parser.yy [7a780ad:d9bad51]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r7a780ad rd9bad51 55 55 #include "TypedefTable.h" 56 56 #include "TypeData.h" 57 #include "AST/Type.hpp" // for BasicType, BasicKind58 57 #include "Common/SemanticError.h" // error_str 59 58 #include "Common/utility.h" // for maybeMoveBuild, maybeBuild, CodeLo... … … 261 260 ast::ConstantExpr * constant = dynamic_cast<ast::ConstantExpr *>(type->expr.get()); 262 261 if ( constant && (constant->rep == "0" || constant->rep == "1") ) { 263 type = new ExpressionNode( new ast::CastExpr( location, maybeMoveBuild(type), new ast::BasicType( ast::Basic Kind::SignedInt ) ) );262 type = new ExpressionNode( new ast::CastExpr( location, maybeMoveBuild(type), new ast::BasicType( ast::BasicType::SignedInt ) ) ); 264 263 } // if 265 264 DeclarationNode * initDecl = distAttr(
Note:
See TracChangeset
for help on using the changeset viewer.