Skip to content

Commit cdaead2

Browse files
committed
Using unsigned int in request_sample_prices() to avoid compilation complains
1 parent bcaf0c0 commit cdaead2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/Trader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class Trader {
138138
auto getCompanyName(const std::string& symbol) -> std::string;
139139

140140
// sample prices
141-
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool;
141+
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool;
142142
auto cancelSamplePricesRequest(const std::vector<std::string>& symbols) -> bool;
143143
auto cancelAllSamplePricesRequests() -> bool;
144144
auto getSamplePricesSize(const std::string& symbol) -> int;

src/Trader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ auto Trader::getCompanyName(const std::string& symbol) -> std::string
242242
return m_client->getCompanyName(symbol);
243243
}
244244

245-
auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool
245+
auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool
246246
{
247247
return m_client->requestSamplePrices(symbols, samplingFrequencyS, samplingWindow);
248248
}

0 commit comments

Comments
 (0)