Changeset 89202 in webkit


Ignore:
Timestamp:
Jun 18, 2011 1:10:14 PM (13 years ago)
Author:
evan@chromium.org
Message:

2011-06-18 Evan Martin <evan@chromium.org>

Reviewed by Darin Adler.

Compiler warning in double->int conversion in TestNetscapePlugIn
https://bugs.webkit.org/show_bug.cgi?id=51554

This code is providing a JS API for removing a property by numeric ID.
We get it from JS as a double, and must convert it to an int before using it.

Test: LayoutTests/plugins/npruntime/remove-property.html

  • DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp: (NPRuntimeRemoveProperty::TestObject::invoke):
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r89201 r89202  
     12011-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
    1162011-06-18  Patrick Gansterer  <paroga@webkit.org>
    217
  • trunk/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp

    r64444 r89202  
    6464                propertyName = pluginTest()->NPN_GetStringIdentifier(propertyNameString.c_str());
    6565            } else {
    66                 int32_t number = arguments[1].value.doubleValue;
     66                int32_t number = static_cast<int32_t>(arguments[1].value.doubleValue);
    6767                propertyName = pluginTest()->NPN_GetIntIdentifier(number);
    6868            }
Note: See TracChangeset for help on using the changeset viewer.