⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269815 in webkit


Ignore:
Timestamp:
Nov 14, 2020, 3:59:20 AM (6 years ago)
Author:
zandobersek@gmail.com
Message:

Unreviewed, suppressing GCC compilation warnings.

  • UIProcess/API/wpe/ScrollGestureController.cpp:

(WebKit::ScrollGestureController::handleEvent):
Explicitly store the std::abs() results as uint32_t values. This avoids
comparison between the otherwise-signed return values and the unsigned
constants.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r269810 r269815  
     12020-11-14  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Unreviewed, suppressing GCC compilation warnings.
     4
     5        * UIProcess/API/wpe/ScrollGestureController.cpp:
     6        (WebKit::ScrollGestureController::handleEvent):
     7        Explicitly store the std::abs() results as uint32_t values. This avoids
     8        comparison between the otherwise-signed return values and the unsigned
     9        constants.
     10
    1112020-11-13  Sihui Liu  <sihui_liu@apple.com>
    212
  • trunk/Source/WebKit/UIProcess/API/wpe/ScrollGestureController.cpp

    r269577 r269815  
    7171            };
    7272
    73             auto xOffset = std::abs(touchPoint->x - m_start.x);
    74             auto yOffset = std::abs(touchPoint->y - m_start.y);
     73            uint32_t xOffset = std::abs(touchPoint->x - m_start.x);
     74            uint32_t yOffset = std::abs(touchPoint->y - m_start.y);
    7575
    7676            if (xOffset >= axisLockReleaseThreshold)
Note: See TracChangeset for help on using the changeset viewer.