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

fix: incorrect grouping of operators in ord function #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

666devs
Copy link

@666devs 666devs commented Mar 8, 2025

PR-Codex overview

This PR focuses on correcting the conditional check in the StringUtils.sol file to ensure proper validation of UTF-8 sequences.

Detailed summary

  • Modified the conditional statement from if (b & 0xC0 != 0x80) to if ((b & 0xC0) != 0x80).
  • This change adds parentheses for clarity and corrects the precedence of the bitwise operation, ensuring accurate UTF-8 sequence validation.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

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