Changeset 235825 in webkit


Ignore:
Timestamp:
Sep 7, 2018 5:41:14 PM (6 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang] exceptionShouldTerminateProgram of StructuredExceptionHandlerSuppressor.cpp should take DWORD
https://bugs.webkit.org/show_bug.cgi?id=189402

Reviewed by Alex Christensen.

Clang reports compilation errors like following:

StructuredExceptionHandlerSuppressor.cpp(38,10): error: case value evaluates to 2147483650, which cannot be narrowed to type 'int' [-Wc++11-narrowing]

case EXCEPTION_DATATYPE_MISALIGNMENT:


No new tests (no behavioral change).

  • platform/win/StructuredExceptionHandlerSuppressor.cpp:

(exceptionShouldTerminateProgram): Changed the type of argument from int to DWORD.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235821 r235825  
     12018-09-07  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] exceptionShouldTerminateProgram of StructuredExceptionHandlerSuppressor.cpp should take DWORD
     4        https://bugs.webkit.org/show_bug.cgi?id=189402
     5
     6        Reviewed by Alex Christensen.
     7
     8        Clang reports compilation errors like following:
     9
     10        > StructuredExceptionHandlerSuppressor.cpp(38,10):  error: case value evaluates to 2147483650, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
     11        >     case EXCEPTION_DATATYPE_MISALIGNMENT:
     12        >          ^
     13
     14        No new tests (no behavioral change).
     15
     16        * platform/win/StructuredExceptionHandlerSuppressor.cpp:
     17        (exceptionShouldTerminateProgram): Changed the type of argument from int to DWORD.
     18
    1192018-09-07  Basuke Suzuki  <Basuke.Suzuki@sony.com>
    220
  • trunk/Source/WebCore/platform/win/StructuredExceptionHandlerSuppressor.cpp

    r165676 r235825  
    3232#endif
    3333
    34 static bool exceptionShouldTerminateProgram(int code)
     34static bool exceptionShouldTerminateProgram(DWORD code)
    3535{
    3636    switch (code) {
Note: See TracChangeset for help on using the changeset viewer.