Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed Apr 15, 2023
1 parent e482bf1 commit f7244ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Next we encode:
| `BigUint` | `256` | `0x0100` | `0x000000020100` | `256` is the smallest number that takes 2 bytes. |
| `BigInt` | `0` | `0x` | `0x00000000` | Signed `0` is also represented as zero-length bytes. |
| `BigInt` | `1` | `0x01` | `0x0000000101` | Signed `1` is also represented as 1 byte. |
| `BigInt` | `-1` | `0x01FF` | `0x00000001FF` | The shortest 2's complement representation of `-1` if `FF`. The most significant bit is 1. |
| `BigInt` | `-1` | `0xFF` | `0x00000001FF` | The shortest 2's complement representation of `-1` is `FF`. The most significant bit is 1. |
| `BigUint` | `127` | `0x7F` | `0x000000017F` | |
| `BigInt` | `127` | `0x7F` | `0x000000017F` | |
| `BigUint` | `128` | `0x80` | `0x0000000180` | |
Expand Down

0 comments on commit f7244ff

Please sign in to comment.