Ignore:
Timestamp:
Jul 22, 2016, 2:05:52 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
ccb447e, e4957e7
Parents:
956a9c77 (diff), ef3b335 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.cc

    r956a9c77 r31e46b8  
    1010// Created On       : Sat May 16 13:26:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 17:19:57 2016
    13 // Update Count     : 53
     12// Last Modified On : Fri Jul 15 18:49:25 2016
     13// Update Count     : 62
    1414//
    1515
     
    5353                        size_t last = value.length() - 1;                       // last character of constant
    5454
    55                         if ( value[0] == '0' ) {                                        // octal constant ?
     55                        if ( value[0] == '0' ) {                                        // octal/hex constant ?
    5656                                dec = false;
    5757                                if ( last != 0 && checkX( value[1] ) ) { // hex constant ?
    5858                                        sscanf( (char *)value.c_str(), "%llx", &v );
    5959                                        //printf( "%llx %llu\n", v, v );
    60                                 } else {
     60                                } else {                                                                // octal constant
    6161                                        sscanf( (char *)value.c_str(), "%llo", &v );
    6262                                        //printf( "%llo %llu\n", v, v );
     
    110110          case ConstantNode::Float:
    111111                {
     112                        //long double v;
    112113                        static const BasicType::Kind kind[2][3] = {
    113114                                { BasicType::Float, BasicType::Double, BasicType::LongDouble },
     
    123124                                last -= 1;                                                              // backup one character
    124125                        } // if
     126
     127                        //sscanf( (char *)value.c_str(), "%Lf", &v );
     128                        //printf( "%s %24.22Lf %Lf\n", value.c_str(), v, v );
     129
    125130                        if ( checkF( value[last] ) ) {                          // float ?
    126131                                size = 0;
Note: See TracChangeset for help on using the changeset viewer.