Skip to content

[ntuple] Fix kReal32Quant decoding for 32-bit values - #411

Open
undefined-panda wants to merge 1 commit into
root-project:devfrom
undefined-panda:fix-kReal32Quant
Open

[ntuple] Fix kReal32Quant decoding for 32-bit values#411
undefined-panda wants to merge 1 commit into
root-project:devfrom
undefined-panda:fix-kReal32Quant

Conversation

@undefined-panda

Copy link
Copy Markdown
Contributor

Avoid 5-bit masking of JS shift counts, which made divisor 0 at nbits = 32.
Cast res to Uint32, s.t. bit 31 is not interpreted as sign bit.

Avoid 5-bit masking of JS shift counts, which made divisor 0 at nbits = 32.
Cast res to Uint32, s.t. bit 31 is not interpreted as sign bit.
@linev linev self-assigned this Jul 28, 2026
@linev
linev self-requested a review July 28, 2026 15:44
@linev
linev changed the base branch from master to dev July 28, 2026 15:52
@linev

linev commented Jul 28, 2026

Copy link
Copy Markdown
Member

Can you provide small test file with such corner cases - from this and previous PR.
And node.js macro which checks expected content.
Like in demo/node/rntuple_test.js

I want to include this macro in jsroot-ci.yml

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