From 26fac5bf7e87dd5704a967ee4c744228b93d20b7 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Fri, 13 Mar 2020 03:56:35 +0300 Subject: fix: use std::size_t instead of size_t - use C++ size_t from std namespace instead of a version from global namespace Tested: - Local build - Unit-tests --- src/net/CurlHttpClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/CurlHttpClient.cpp') diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp index 01115e6..5bd9313 100644 --- a/src/net/CurlHttpClient.cpp +++ b/src/net/CurlHttpClient.cpp @@ -2,6 +2,8 @@ #include "tgbot/net/CurlHttpClient.h" +#include + #include namespace TgBot { @@ -14,7 +16,7 @@ CurlHttpClient::~CurlHttpClient() { curl_easy_cleanup(curlSettings); } -static size_t curlWriteString(char* ptr, size_t size, size_t nmemb, void* userdata) { +static std::size_t curlWriteString(char* ptr, std::size_t size, std::size_t nmemb, void* userdata) { static_cast(userdata)->append(ptr, size * nmemb); return size * nmemb; }; -- cgit v1.2.3