From eb19f193bc7b962e5a663443adc2bc2841821621 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Mon, 26 Aug 2024 18:56:38 +0200 Subject: [PATCH] fix missing float declaration --- source_modules/rtl_sdr_source/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_modules/rtl_sdr_source/src/main.cpp b/source_modules/rtl_sdr_source/src/main.cpp index 7ef3951c..ac60baaa 100644 --- a/source_modules/rtl_sdr_source/src/main.cpp +++ b/source_modules/rtl_sdr_source/src/main.cpp @@ -523,8 +523,8 @@ private: RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx; int sampCount = len / 2; for (int i = 0; i < sampCount; i++) { - _this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f; - _this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f; + _this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4f) / 128.0f; + _this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4f) / 128.0f; } if (!_this->stream.swap(sampCount)) { return; } }