[webkit-changes] [WebKit/WebKit] 33e349: Fix MSVC warning in MathCommon

Don Olmstead noreply at github.com
Thu Mar 28 14:01:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 33e3497f577ec238f2f6766fc43cae9c2496aac9
      https://github.com/WebKit/WebKit/commit/33e3497f577ec238f2f6766fc43cae9c2496aac9
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2024-03-28 (Thu, 28 Mar 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/MathCommon.h

  Log Message:
  -----------
  Fix MSVC warning in MathCommon
https://bugs.webkit.org/show_bug.cgi?id=271835

Reviewed by Yusuke Suzuki.

In `toIntImpl` a warning, C4334, is emitted because MSVC is implicitly
converting the result of a 32-bit shift to 64-bit. By making an explicit
cast the warning is silenced.

* Source/JavaScriptCore/runtime/MathCommon.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list