Skip to content

Ensure cpr::LowSpeed properties are cased to long for curl#1218

Merged
COM8 merged 1 commit intomasterfrom
fix/low_speed_long
May 11, 2025
Merged

Ensure cpr::LowSpeed properties are cased to long for curl#1218
COM8 merged 1 commit intomasterfrom
fix/low_speed_long

Conversation

@COM8
Copy link
Member

@COM8 COM8 commented May 5, 2025

Based on the docs, std::chrono::seconds is at least 36 bit long which would result in 64bit -> long and therefore it implicitly works on 64 bit systems.
https://en.cppreference.com/w/cpp/chrono/duration

BUT on 32 bit systems, we need count() and cast.

@COM8 COM8 added this to the CPR 1.12.0 milestone May 5, 2025
@COM8 COM8 added the Bug 🐛 label May 5, 2025
@COM8 COM8 force-pushed the fix/low_speed_long branch from 66ed485 to bd53478 Compare May 5, 2025 15:54
@COM8 COM8 merged commit 21e6599 into master May 11, 2025
85 of 88 checks passed
@COM8 COM8 deleted the fix/low_speed_long branch May 11, 2025 04:38
COM8 added a commit that referenced this pull request Jun 14, 2025
Ensure `cpr::LowSpeed` properties are cased to long for curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant