Browse Source

Fix stack overflow problem on some platform

Tindy X 5 years ago
parent
commit
4958e30657
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/webget.cpp

+ 3 - 3
src/webget.cpp

@@ -57,7 +57,7 @@ static std::string curlGet(std::string url, std::string proxy, std::string &resp
 {
     CURL *curl_handle;
     std::string data;
-    int retVal = 0;
+    long retVal = 0;
 
     curl_init();
 
@@ -164,7 +164,7 @@ int curlPost(std::string url, std::string data, std::string proxy, std::string a
     CURL *curl_handle;
     CURLcode res;
     struct curl_slist *list = NULL;
-    int retVal = 0;
+    long retVal = 0;
 
     curl_init();
     curl_handle = curl_easy_init();
@@ -200,7 +200,7 @@ int curlPatch(std::string url, std::string data, std::string proxy, std::string
 {
     CURL *curl_handle;
     CURLcode res;
-    int retVal = 0;
+    long retVal = 0;
     struct curl_slist *list = NULL;
 
     curl_init();