- Timestamp:
- 06/01/13 12:04:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r16102 r16538 1158 1158 case 'X': 1159 1159 { 1160 const uint64_t val = *reinterpret_cast<const uint64_t*>(ptr);1160 const int64_t val = *reinterpret_cast<const int64_t*>(ptr); 1161 1161 ptr += 8; 1162 if (val>UINT32_MAX) 1163 return Number::New(val); 1164 return Integer::NewFromUnsigned(val); 1162 if (val>=0 && val<=UINT32_MAX) 1163 return Integer::NewFromUnsigned(val); 1164 if (val>=INT32_MIN && val<0) 1165 return Integer::New(val); 1166 return Number::New(val); 1165 1167 } 1166 1168 case 'S': { Handle<Value> v=Integer::NewFromUnsigned(*reinterpret_cast<const uint16_t*>(ptr)); ptr += 2; return v; }
Note:
See TracChangeset
for help on using the changeset viewer.