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

Cast arguments to int32_t before passing to janet_formatb with %d format specifier #1514

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

ArtSin
Copy link
Contributor

@ArtSin ArtSin commented Oct 20, 2024

s->line and s->column in delim_error are size_t, which is typically 64-bit, but va_arg in janet_formatbv reads int32_t for %d.

…d` format specifier

`s->line` and `s->column` in `delim_error` are `size_t`, which is typically 64-bit, but `va_arg` in `janet_formatbv` reads `int32_t` for `%d`.
@bakpakin
Copy link
Member

Thanks, the CI failure look spurious here.

@bakpakin bakpakin merged commit 5e443cd into janet-lang:master Oct 25, 2024
12 of 13 checks passed
@ArtSin ArtSin deleted the fix-formatb-int32_t-arg branch October 25, 2024 15:46
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