Make WordPress Core


Ignore:
Timestamp:
03/24/2022 03:18:31 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.17.1.

The latest version of sodium_compat includes further improvements for PHP 8.1 compatibility.

Release notes:
https://github.com/paragonie/sodium_compat/releases/tag/v1.17.1

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.17.0...v1.17.1

Follow-up to [49741], [51002], [51591].

Props jrf, paragoninitiativeenterprises.
Fixes #55453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core32/Int64.php

    r46586 r52988  
    338338            for ($j = 0; $j < $a_l; ++$j) {
    339339                $b_j = $b[$j];
    340                 $product = ($a_i * $b_j) + $r[$i + $j];
    341                 $carry = ($product >> $baseLog2 & 0xffff);
    342                 $r[$i + $j] = ($product - (int) ($carry * $base)) & 0xffff;
     340                $product = (($a_i * $b_j) + $r[$i + $j]);
     341                $carry = (((int) $product >> $baseLog2) & 0xffff);
     342                $r[$i + $j] = ((int) $product - (int) ($carry * $base)) & 0xffff;
    343343                $r[$i + $j + 1] += $carry;
    344344            }
Note: See TracChangeset for help on using the changeset viewer.