From 9dd6c8546dfb174855160f63e8952f05bdb4fc62 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Tue, 30 Jan 2024 18:02:16 +0100 Subject: [PATCH] resolve conflict in spectran_http_client.cpp --- .../spectran_http_source/src/spectran_http_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_modules/spectran_http_source/src/spectran_http_client.cpp b/source_modules/spectran_http_source/src/spectran_http_client.cpp index 5b6fe142..3b51f2d0 100644 --- a/source_modules/spectran_http_source/src/spectran_http_client.cpp +++ b/source_modules/spectran_http_source/src/spectran_http_client.cpp @@ -54,7 +54,7 @@ void SpectranHTTPClient::setCenterFrequency(uint64_t freq) { sprintf(buf, "{\"frequencyCenter\":%" PRIu64 ",\"frequencySpan\":%" PRIu64 ",\"type\":\"capture\"}", freq, _samplerate); std::string data = buf; char lenBuf[16]; - sprintf(lenBuf, "%" PRIu64, data.size()); + sprintf(lenBuf, "%" PRIu64, (uint64_t)data.size()); rqhdr.setField("Content-Length", lenBuf); controlHttp.sendRequestHeader(rqhdr); controlSock->sendstr(data);