Skip to content

Conversation

JoshuaMoelans
Copy link
Member

@JoshuaMoelans JoshuaMoelans commented Sep 15, 2025

#skip-changelog

@JoshuaMoelans JoshuaMoelans marked this pull request as ready for review September 15, 2025 09:20
cursor[bot]

This comment was marked as outdated.

test_param_conversion_helper(
"%lld %lld %lld", (long long)a, (long long)b, (long long)c);
#else
test_param_conversion_helper("%d %d %d", a, b, c);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a comment that raises:

  • it is still undefined behavior (i.e., incorrect, given we read these params as 64-bit values)
  • it only works because the 64-bit ABI provides 8-byte slots for variadic arguments

Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
cursor[bot]

This comment was marked as outdated.

Comment on lines 157 to 158
// Currently, on 32-bit platforms, we need to cast to long long since the
// parameter conversion expects long long for %d/%i format specifiers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is now out of sync with the code it is commenting on.

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