Changeset 89202 in webkit
- Timestamp:
- Jun 18, 2011 1:10:14 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r89201 r89202 1 2011-06-18 Evan Martin <evan@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Compiler warning in double->int conversion in TestNetscapePlugIn 6 https://bugs.webkit.org/show_bug.cgi?id=51554 7 8 This code is providing a JS API for removing a property by numeric ID. 9 We get it from JS as a double, and must convert it to an int before using it. 10 11 Test: LayoutTests/plugins/npruntime/remove-property.html 12 13 * DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp: 14 (NPRuntimeRemoveProperty::TestObject::invoke): 15 1 16 2011-06-18 Patrick Gansterer <paroga@webkit.org> 2 17 -
trunk/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp
r64444 r89202 64 64 propertyName = pluginTest()->NPN_GetStringIdentifier(propertyNameString.c_str()); 65 65 } else { 66 int32_t number = arguments[1].value.doubleValue;66 int32_t number = static_cast<int32_t>(arguments[1].value.doubleValue); 67 67 propertyName = pluginTest()->NPN_GetIntIdentifier(number); 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.