Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Actually use number correctly casted from double to int as index #2916

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

emanuele6
Copy link
Member

@emanuele6 emanuele6 commented Sep 28, 2023

The code was using (int)jv_number_value(k) instead of (int)didx.

follow-up from 0e067ef (#2821)

Useless assignments to didx detected by clang-tidy.

@emanuele6
Copy link
Member Author

I forgot to create a PR for this patch earlier :/

The code was using (int)jv_number_value(k) instead of (int)didx.

follow-up from 0e067ef

Useless assignments to didx detected by clang-tidy.
@nicowilliams nicowilliams merged commit 6b5a18f into jqlang:master Sep 28, 2023
27 checks passed
@nicowilliams
Copy link
Contributor

Thanks!

@emanuele6 emanuele6 deleted the didx branch September 28, 2023 03:55
@emanuele6 emanuele6 added the bug label Sep 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants