Skip to content

Fix/why is shift a number - #59

Open
emnpiex wants to merge 15 commits into
ProtoDef-io:masterfrom
emnpiex:fix/why-is-shift-a-number
Open

emnpiex wants to merge 15 commits into
ProtoDef-io:masterfrom
emnpiex:fix/why-is-shift-a-number

Conversation

@emnpiex

@emnpiex emnpiex commented Apr 30, 2026

Copy link
Copy Markdown

note: PR based on #57

depends on #58 for whether you want this merged.

@rom1504 rom1504 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra agent review — AI-generated, not manually written by the maintainer.

The boolean shift description matches the implementation's position-versus-mask selector. Before landing this documentation stack, make the newly added shifted example executable with its chosen numeric type; it currently combines BigInt assembly with lu32's Number writer. Coordinate that correction with #64.

This is a documentation/codec-contract review; no fresh full suite was run.

Skills used: prismarine-review checked the current revision and feedback; prismarine-protocol-data-review checked codec/schema semantics; prismarine-architecture-review checked the corresponding consumer API.

Comment thread doc/datatypes/utils.md
{
"type": "lu32",
"big": true,
"shift": true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Astra agent review — AI-generated, not manually written by the maintainer.

This new example retains "big": true with "type": "lu32". Big mode assembles BigInt values, but lu32 writes Numbers, so users copying the example encounter a type error. Use big: false (or omit it) for this 32-bit example, or select a supported BigInt backing type and show matching values.

Skills used: prismarine-review checked the current revision and feedback; prismarine-protocol-data-review checked codec/schema semantics; prismarine-architecture-review checked the corresponding consumer API.

@rom1504 rom1504 mentioned this pull request Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants