Changes in src/Parser/ExpressionNode.cc [a6c5d7c:bf4b4cf]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
ra6c5d7c rbf4b4cf 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Sep 27 22:51:55201713 // Update Count : 78 112 // Last Modified On : Tue Sep 26 11:23:36 2017 13 // Update Count : 780 14 14 // 15 15 … … 87 87 } else { 88 88 assertf( false, "internal error, bad integral length %s", str.c_str() ); 89 } // if 89 } // if 90 90 posn += 1; 91 91 } // if … … 207 207 208 208 assert( 0 <= size && size < 6 ); 209 // Constant type is correct for overload resolving.210 209 ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[Unsigned][size] ), str, v ) ); 211 if ( Unsigned && size < 2 ) {// hh or h, less than int ?210 if ( size < 2 ) { // hh or h, less than int ? 212 211 // int i = -1uh => 65535 not -1, so cast is necessary for unsigned, which unfortunately eliminates warnings for large values. 213 212 ret = new CastExpr( ret, new BasicType( Type::Qualifiers(), kind[Unsigned][size] ) ); … … 397 396 398 397 NameExpr * build_varref( const string * name ) { 399 NameExpr * expr = new NameExpr( *name , nullptr);398 NameExpr * expr = new NameExpr( *name ); 400 399 delete name; 401 400 return expr; … … 488 487 list< Expression * > args; 489 488 buildMoveList( expr_node, args ); 490 return new UntypedExpr( maybeMoveBuild< Expression >(function), args , nullptr);489 return new UntypedExpr( maybeMoveBuild< Expression >(function), args ); 491 490 } // build_func 492 491
Note: See TracChangeset
for help on using the changeset viewer.