Changeset 7b1d5ec
- Timestamp:
- Sep 11, 2017, 5:13:36 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 6de9f4a
- Parents:
- 15697ff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r15697ff r7b1d5ec 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Sep 10 09:56:06201713 // Update Count : 6 5512 // Last Modified On : Mon Sep 11 16:06:42 2017 13 // Update Count : 666 14 14 // 15 15 … … 167 167 168 168 ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[Unsigned][size] ), str, v ) ); 169 if ( Unsigned && size < 2 ) { // less than int ? 170 // int i = -1uh => 65535 not -1, so cast is necessary for unsigned, which eliminates some warnings for large 171 // values. 172 ret = new CastExpr( ret, new BasicType( Type::Qualifiers(), kind[Unsigned][size] ) ); 173 } // if 169 174 CLEANUP: 170 175 if ( units.length() != 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.