From 7b435df95d964bb9b14c43ca0686e23d8f8a963d Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 16 Dec 2024 19:58:59 -0600 Subject: [PATCH] Er, int not bool --- src/launchpad.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/launchpad.cpp b/src/launchpad.cpp index 220fabf..4d861ce 100644 --- a/src/launchpad.cpp +++ b/src/launchpad.cpp @@ -257,7 +257,7 @@ std::optional launchpad::api_get(const std::string& endpoint, const curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); - bool tries = 0; + int tries = 0; long http_code = 0; while (tries < 5) { @@ -334,7 +334,7 @@ std::optional launchpad::api_post( curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); - bool tries = 0; + int tries = 0; long http_code = 0; while (tries < 5) {