Changeset c7ed6d0


Ignore:
Timestamp:
Jun 4, 2015, 11:05:59 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, 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:
cf0941d
Parents:
a3b5cac
Message:

make float constants type double

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    ra3b5cac rc7ed6d0  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun  3 11:28:56 2015
    13 // Update Count     : 7
     12// Last Modified On : Thu Jun  4 21:40:22 2015
     13// Update Count     : 9
    1414//
    1515
     
    180180
    181181        switch ( type ) {
    182                 /* integers */
    183182          case Integer:
    184183                os << value ;
     
    187186                os << value ;
    188187                break;
    189 
    190188          case Character:
    191189                os << "'" << value << "'";
    192190                break;
    193 
    194191          case String:
    195192                os << '"' << value << '"';
    196193                break;
    197         }
     194        } // switch
    198195
    199196        os << ' ';
     
    216213                break;
    217214          case Float:
    218                 bt = new BasicType( q, BasicType::Float );
     215                // floating-point constants are type double
     216                bt = new BasicType( q, BasicType::Double );
    219217                break;
    220218          case Character:
Note: See TracChangeset for help on using the changeset viewer.