Skip to content

Commit

Permalink
Alpha 1.0.32: Fix build in Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Apr 12, 2017
1 parent ca90b8b commit af28e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/storage/file_download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void Downloader::requestedAmountIncrement(MTP::DcId dcId, int index, int amount)
Expects(index >= 0 && index < MTP::kDownloadSessionsCount);
auto it = _requestedBytesAmount.find(dcId);
if (it == _requestedBytesAmount.cend()) {
it = _requestedBytesAmount.emplace(dcId, RequestedInDc { 0 }).first;
it = _requestedBytesAmount.emplace(dcId, RequestedInDc { { 0 } }).first;
}
it->second[index] += amount;
if (it->second[index]) {
Expand Down

0 comments on commit af28e3b

Please sign in to comment.