Changeset 4cb935e for src/ResolvExpr


Ignore:
Timestamp:
Dec 1, 2016, 12:46:34 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
78b3f52
Parents:
148f7290
Message:

0 and 1 now properly parse and resolve to zero_t and one_t respectively

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    r148f7290 r4cb935e  
    243243                                        result->get_qualifiers() += zeroType->get_qualifiers();
    244244                                }
     245                        } else if ( widenSecond && dynamic_cast< OneType* >( type2 ) ) {
     246                                result = new BasicType( zeroType->get_qualifiers(), BasicType::SignedInt );
     247                                result->get_qualifiers() += type2->get_qualifiers();
    245248                        }
    246249                }
     
    254257                                        result->get_qualifiers() += oneType->get_qualifiers();
    255258                                }
     259                        } else if ( widenSecond && dynamic_cast< ZeroType* >( type2 ) ) {
     260                                result = new BasicType( oneType->get_qualifiers(), BasicType::SignedInt );
     261                                result->get_qualifiers() += type2->get_qualifiers();
    256262                        }
    257263                }
Note: See TracChangeset for help on using the changeset viewer.