Changeset 154902 in webkit for trunk/Source/JavaScriptCore/runtime/JSCJSValueInlines.h
- Timestamp:
- Aug 30, 2013, 11:30:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSCJSValueInlines.h
r154038 r154902 211 211 } 212 212 213 inline JSValue::operator bool() const213 inline JSValue::operator UnspecifiedBoolType*() const 214 214 { 215 215 ASSERT(tag() != DeletedValueTag); 216 return tag() != EmptyValueTag ;216 return tag() != EmptyValueTag ? reinterpret_cast<UnspecifiedBoolType*>(1) : 0; 217 217 } 218 218 … … 359 359 } 360 360 361 inline JSValue::operator bool() const362 { 363 return u.asInt64 ;361 inline JSValue::operator UnspecifiedBoolType*() const 362 { 363 return u.asInt64 ? reinterpret_cast<UnspecifiedBoolType*>(1) : 0; 364 364 } 365 365
Note:
See TracChangeset
for help on using the changeset viewer.