Skip to content

CDRIVER-4766 cast size_t/ssize_t to long #1465

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 3 commits into from
Nov 3, 2023

Conversation

rcsanchez97
Copy link
Contributor

@rcsanchez97 rcsanchez97 commented Nov 3, 2023

This fixes compilation failure when %ld format specifier is used on 32-bit platforms.

Ref: https://bugs.debian.org/1055264

This PR also adds a Debian packaging build for 32-bit (i386) architecture.

Patch build that adds the 32-bit Debian packaging build and shows the compilation failure: https://spruce.mongodb.com/version/6544461e32f417938789cb2b/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Patch build with the fix in this PR: https://spruce.mongodb.com/version/65444681c9ec44cc612a0da4/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

NB: After merging I will cherry-pick this to r1.25.

This fixes compilation failure when %ld format specifier is used on 32-bit
platforms.

Ref: https://bugs.debian.org/1055264
@rcsanchez97
Copy link
Contributor Author

@rcsanchez97 rcsanchez97 merged commit 518ce0f into mongodb:master Nov 3, 2023
@rcsanchez97 rcsanchez97 deleted the fix_32bit_printf branch November 3, 2023 14:51
rcsanchez97 added a commit that referenced this pull request Nov 3, 2023
* add 32-bit Debian package build

* CDRIVER-4766 replace %ld with %zu in TRACEs

This fixes compilation failure when %ld format specifier is used on 32-bit
platforms.

Ref: https://bugs.debian.org/1055264
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