Skip to content

Commit

Permalink
Using unsigned int in request_sample_prices() to avoid compilation co…
Browse files Browse the repository at this point in the history
…mplains
  • Loading branch information
thiagowinkler committed May 10, 2020
1 parent bcaf0c0 commit cdaead2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Trader.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Trader {
auto getCompanyName(const std::string& symbol) -> std::string;

// sample prices
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool;
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool;
auto cancelSamplePricesRequest(const std::vector<std::string>& symbols) -> bool;
auto cancelAllSamplePricesRequests() -> bool;
auto getSamplePricesSize(const std::string& symbol) -> int;
Expand Down
2 changes: 1 addition & 1 deletion src/Trader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ auto Trader::getCompanyName(const std::string& symbol) -> std::string
return m_client->getCompanyName(symbol);
}

auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool
auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, unsigned int samplingWindow) -> bool
{
return m_client->requestSamplePrices(symbols, samplingFrequencyS, samplingWindow);
}
Expand Down

0 comments on commit cdaead2

Please sign in to comment.