Skip to content

Fix encoding bug in js_dtoa_radix #399

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

Merged
merged 1 commit into from
May 7, 2024

Conversation

chqrlie
Copy link
Collaborator

@chqrlie chqrlie commented May 7, 2024

  • fix radix conversion rounding code: incrementing the digit does not work for '9'. We can assume ASCII so it works for all other digits, especially all letters
  • also avoid recomputing the string length

- fix radix conversion rounding code: incrementing the digit
  does not work for '9'.  We can assume ASCII so it works for
  all other digits, especially all letters
- also avoid recomputing the string length
@chqrlie chqrlie merged commit f9ecc1a into quickjs-ng:master May 7, 2024
47 checks passed
@chqrlie chqrlie deleted the dtoa-radix-fix branch May 7, 2024 17:35
bnoordhuis pushed a commit to bnoordhuis/quickjs that referenced this pull request Apr 8, 2025
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