We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9e2c87 commit bd53478Copy full SHA for bd53478
cpr/session.cpp
@@ -489,8 +489,8 @@ void Session::SetBody(Body&& body) {
489
}
490
491
void Session::SetLowSpeed(const LowSpeed& low_speed) {
492
- curl_easy_setopt(curl_->handle, CURLOPT_LOW_SPEED_LIMIT, low_speed.limit);
493
- curl_easy_setopt(curl_->handle, CURLOPT_LOW_SPEED_TIME, low_speed.time); // cppcheck-suppress y2038-unsafe-call
+ curl_easy_setopt(curl_->handle, CURLOPT_LOW_SPEED_LIMIT, static_cast<long>(low_speed.limit));
+ curl_easy_setopt(curl_->handle, CURLOPT_LOW_SPEED_TIME, static_cast<long>(low_speed.time.count())); // cppcheck-suppress y2038-unsafe-call
494
495
496
void Session::SetVerifySsl(const VerifySsl& verify) {
0 commit comments