Changeset 15799 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Aug 4, 2006, 11:57:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSNodeList.c
r15497 r15799 34 34 NodeList* nodeList = JSObjectGetPrivate(thisObject); 35 35 assert(nodeList); 36 Node* node = NodeList_item(nodeList, JSValueToNumber(context, arguments[0], exception));36 Node* node = NodeList_item(nodeList, (unsigned)JSValueToNumber(context, arguments[0], exception)); 37 37 if (node) 38 38 return JSNode_new(context, node); … … 66 66 assert(nodeList); 67 67 double index = JSValueToNumber(context, JSValueMakeString(context, propertyName), exception); 68 unsigned uindex = index;68 unsigned uindex = (unsigned)index; 69 69 if (uindex == index) { // false for NaN 70 70 Node* node = NodeList_item(nodeList, uindex); 71 if (node) {71 if (node) 72 72 return JSNode_new(context, node); 73 }74 73 } 75 74
Note:
See TracChangeset
for help on using the changeset viewer.