Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Constant.cc

    r62423350 r2c37f34  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // Constant.cc --
     7// Constant.cc -- 
    88//
    99// Author           : Richard C. Bilson
     
    4646}
    4747
    48 unsigned long long Constant::get_ival() const {
    49         assertf( safe_dynamic_cast<BasicType*>(type)->isInteger(), "Attempt to retrieve ival from non-integer constant." );
    50         return val.ival;
    51 }
    52 
    53 double Constant::get_dval() const {
    54         assertf( ! safe_dynamic_cast<BasicType*>(type)->isInteger(), "Attempt to retrieve dval from integer constant." );
    55         return val.dval;
    56 }
    57 
    5848void Constant::print( std::ostream &os ) const {
    5949        os << "(" << rep << " " << val.ival;
Note: See TracChangeset for help on using the changeset viewer.