Skip to content

fix(dart): added <<< for correct logical right shift semantics in uint#3607

Open
ayush00git wants to merge 2 commits intoapache:mainfrom
ayush00git:fix/logicalRightShiftUint
Open

fix(dart): added <<< for correct logical right shift semantics in uint#3607
ayush00git wants to merge 2 commits intoapache:mainfrom
ayush00git:fix/logicalRightShiftUint

Conversation

@ayush00git
Copy link
Copy Markdown
Contributor

@ayush00git ayush00git commented Apr 22, 2026

Why?

The unsigned integer wrapper classes in Fory's Dart implementation (specifically Uint64) implement the right shift >> operator by delegating directly to Dart's native int.operator >>. In Dart, >> performs an arithmetic (sign-extending) right shift.

What does this PR do?

Implement the operator >>> (logical right shift) for all unsigned integer wrappers to expose a proper logical shift API.

Related issues

#3606

AI Contribution Checklist

  • Substantial AI assistance was used in this PR: yes / no
  • If yes, I included a completed AI Contribution Checklist in this PR description and the required AI Usage Disclosure.
  • If yes, my PR description includes the required ai_review summary and screenshot evidence of the final clean AI review results from both fresh reviewers on the current PR diff or current HEAD after the latest code changes.

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

@ayush00git
Copy link
Copy Markdown
Contributor Author

@chaokunyang
have a look

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.

1 participant