Changeset a32b204 for translator/ControlStruct/CaseRangeMutator.cc
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ControlStruct/CaseRangeMutator.cc
rb87a5ed ra32b204 117 117 if ( ch_lo > ch_hi ) { char t=ch_lo; ch_lo=ch_hi; ch_hi=t; } 118 118 119 for ( char c = ch_lo; c <= ch_hi; c++ ){119 for ( char c = ch_lo; c <= ch_hi; c++ ){ 120 120 Type::Qualifiers q; 121 121 Constant cnst( new BasicType(q, BasicType::Char), … … 154 154 if ( i_lo > i_hi ) { int t=i_lo; i_lo=i_hi; i_hi=t; } 155 155 156 for ( int c = i_lo; c <= i_hi; c++ ){156 for ( int c = i_lo; c <= i_hi; c++ ){ 157 157 Type::Qualifiers q; 158 158 Constant cnst( new BasicType(q, ty_hi->get_kind()), // figure can't hurt (used to think in positives)
Note: See TracChangeset
for help on using the changeset viewer.