From 4cd01a5f6ed795ee5c2598a56735c63105fcc982 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 22 Nov 2022 17:52:40 +0100 Subject: [PATCH] Fix soundcloud curl callback This also addresses C++17 compatibility. --- libs/ardour/soundcloud_upload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/soundcloud_upload.cc b/libs/ardour/soundcloud_upload.cc index 9ec30574dd..7b702c419f 100644 --- a/libs/ardour/soundcloud_upload.cc +++ b/libs/ardour/soundcloud_upload.cc @@ -35,7 +35,7 @@ using namespace PBD; static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) { - register int realsize = (int)(size * nmemb); + size_t realsize = (size * nmemb); struct MemoryStruct *mem = (struct MemoryStruct *)data; mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);