Changeset 17372 in webkit for trunk/JavaScriptCore/kjs/property_map.cpp
- Timestamp:
- Oct 27, 2006, 9:48:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/property_map.cpp
r15468 r17372 106 106 static inline bool isValid(UString::Rep* key) 107 107 { 108 return reinterpret_cast<uintptr_t>(key) & ~0x1;108 return !!(reinterpret_cast<uintptr_t>(key) & ~0x1); 109 109 } 110 110 … … 322 322 _singleEntry.key = rep; 323 323 _singleEntry.value = value; 324 _singleEntry.attributes = attributes;324 _singleEntry.attributes = static_cast<short>(attributes); 325 325 checkConsistency(); 326 326 return; … … 375 375 entries[i].key = rep; 376 376 entries[i].value = value; 377 entries[i].attributes = attributes;377 entries[i].attributes = static_cast<short>(attributes); 378 378 entries[i].index = ++_table->lastIndexUsed; 379 379 ++_table->keyCount; … … 407 407 entries[i].key = key; 408 408 entries[i].value = value; 409 entries[i].attributes = attributes;409 entries[i].attributes = static_cast<short>(attributes); 410 410 entries[i].index = index; 411 411 } … … 571 571 if (!_table) { 572 572 #if USE_SINGLE_ENTRY 573 return _singleEntry.attributes & GetterSetter;574 #e ndif573 return !!(_singleEntry.attributes & GetterSetter); 574 #else 575 575 return false; 576 #endif 576 577 } 577 578
Note:
See TracChangeset
for help on using the changeset viewer.