Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4efd0a9f
Commit
4efd0a9f
authored
Dec 31, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/curl/Easy: use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
CURLINFO_CONTENT_LENGTH_DOWNLOAD is deprecated and is ugly because it uses floating point.
parent
f6f87513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Easy.hxx
src/lib/curl/Easy.hxx
+4
-4
No files found.
src/lib/curl/Easy.hxx
View file @
4efd0a9f
...
...
@@ -199,10 +199,10 @@ public:
* Returns the response body's size, or -1 if that is unknown.
*/
[[
gnu
::
pure
]]
int64
_t
GetContentLength
()
const
noexcept
{
double
value
;
return
GetInfo
(
CURLINFO_CONTENT_LENGTH_DOWNLOAD
,
&
value
)
?
(
int64_t
)
value
curl_off
_t
GetContentLength
()
const
noexcept
{
curl_off_t
value
;
return
GetInfo
(
CURLINFO_CONTENT_LENGTH_DOWNLOAD
_T
,
&
value
)
?
value
:
-
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment