[webkit-changes] [WebKit/WebKit] d505e8: [Win] LayoutUnit.h(84) : warning C4756: overflow i...

Fujii Hironori noreply at github.com
Sat May 6 21:15:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d505e867ef8298cfb655426ac0a5a52ae7af2929
      https://github.com/WebKit/WebKit/commit/d505e867ef8298cfb655426ac0a5a52ae7af2929
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2023-05-06 (Sat, 06 May 2023)

  Changed paths:
    M Source/WebCore/platform/LayoutUnit.h

  Log Message:
  -----------
  [Win] LayoutUnit.h(84) : warning C4756: overflow in constant arithmetic
https://bugs.webkit.org/show_bug.cgi?id=256423

Unreviewed build fix for Windows port.

> WebCore\platform\LayoutUnit.h(84) : warning C4756: overflow in constant arithmetic

It seems that LayoutUnit::LayoutUnit(float) has to calculate "value *
kFixedPointDenominator" in double.

* Source/WebCore/platform/LayoutUnit.h:
(WebCore::LayoutUnit::LayoutUnit):
Removed the float version of constructor.

Canonical link: https://commits.webkit.org/263770@main




More information about the webkit-changes mailing list