Changes in src/Parser/ParseNode.cc [5d125e4:4e06c1e]
- File:
-
- 1 edited
-
src/Parser/ParseNode.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.cc
r5d125e4 r4e06c1e 10 10 // Created On : Sat May 16 13:26:29 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 15 18:49:25201613 // Update Count : 6212 // Last Modified On : Tue Jul 12 17:19:57 2016 13 // Update Count : 53 14 14 // 15 15 … … 53 53 size_t last = value.length() - 1; // last character of constant 54 54 55 if ( value[0] == '0' ) { // octal /hexconstant ?55 if ( value[0] == '0' ) { // octal constant ? 56 56 dec = false; 57 57 if ( last != 0 && checkX( value[1] ) ) { // hex constant ? 58 58 sscanf( (char *)value.c_str(), "%llx", &v ); 59 59 //printf( "%llx %llu\n", v, v ); 60 } else { // octal constant60 } else { 61 61 sscanf( (char *)value.c_str(), "%llo", &v ); 62 62 //printf( "%llo %llu\n", v, v ); … … 110 110 case ConstantNode::Float: 111 111 { 112 //long double v;113 112 static const BasicType::Kind kind[2][3] = { 114 113 { BasicType::Float, BasicType::Double, BasicType::LongDouble }, … … 124 123 last -= 1; // backup one character 125 124 } // if 126 127 //sscanf( (char *)value.c_str(), "%Lf", &v );128 //printf( "%s %24.22Lf %Lf\n", value.c_str(), v, v );129 130 125 if ( checkF( value[last] ) ) { // float ? 131 126 size = 0;
Note:
See TracChangeset
for help on using the changeset viewer.