Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace smallest 32-bit signed integer with abbreviation #168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,7 @@ To <dfn>decode a base64 VLQ</dfn> from a [=string=] |segment| given a [=position
1. If |value| is greater than or equal to 2<sup>31</sup>, throw an error.
1. Multiply |nextShift| by 32.
1. Advance |position| by 1.
1. If |value| is 0 and |sign| is -1, return -2147483648.

NOTE: -2147483648 is the smallest 32-bit signed integer.
1. If |value| is 0 and |sign| is -1, return -2<sup>31</sup>.
1. Return |value| * |sign|.

NOTE: In addition to returning the decoded value, this algorithm updates the [=position variable=]
Expand Down
Loading