From cdaead2044b9219910fb74acb7a8f8143873b9d2 Mon Sep 17 00:00:00 2001 From: Thiago Alves Date: Sun, 10 May 2020 14:48:53 -0400 Subject: [PATCH] Using unsigned int in request_sample_prices() to avoid compilation complains --- include/Trader.h | 2 +- src/Trader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Trader.h b/include/Trader.h index 1373e01..f593627 100644 --- a/include/Trader.h +++ b/include/Trader.h @@ -138,7 +138,7 @@ class Trader { auto getCompanyName(const std::string& symbol) -> std::string; // sample prices - auto requestSamplePrices(std::vector symbols, double samplingFrequencyS, int samplingWindow) -> bool; + auto requestSamplePrices(std::vector symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool; auto cancelSamplePricesRequest(const std::vector& symbols) -> bool; auto cancelAllSamplePricesRequests() -> bool; auto getSamplePricesSize(const std::string& symbol) -> int; diff --git a/src/Trader.cpp b/src/Trader.cpp index 282773c..8e75d95 100644 --- a/src/Trader.cpp +++ b/src/Trader.cpp @@ -242,7 +242,7 @@ auto Trader::getCompanyName(const std::string& symbol) -> std::string return m_client->getCompanyName(symbol); } -auto Trader::requestSamplePrices(std::vector symbols, double samplingFrequencyS, int samplingWindow) -> bool +auto Trader::requestSamplePrices(std::vector symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool { return m_client->requestSamplePrices(symbols, samplingFrequencyS, samplingWindow); }