Skip to content

Commit

Permalink
Normative: Fixed bug in Number::unsignedRightShift (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnaldo authored and ljharb committed Apr 22, 2020
1 parent 0f694ba commit 16387ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ <h1>Number::signedRightShift ( _x_, _y_ )</h1>
<emu-clause id="sec-numeric-types-number-unsignedRightShift">
<h1>Number::unsignedRightShift ( _x_, _y_ )</h1>
<emu-alg>
1. Let _lnum_ be ! ToInt32(_x_).
1. Let _lnum_ be ! ToUint32(_x_).
1. Let _rnum_ be ! ToUint32(_y_).
1. Let _shiftCount_ be the result of masking out all but the least significant 5 bits of _rnum_, that is, compute _rnum_ &amp; 0x1F.
1. Return the result of performing a zero-filling right shift of _lnum_ by _shiftCount_ bits. Vacated bits are filled with zero. The result is an unsigned 32-bit integer.
Expand Down

0 comments on commit 16387ec

Please # to comment.