Fix for file uploader

This commit is contained in:
Eric Kotato 2020-01-19 06:53:09 +03:00
parent e2c8eaf191
commit 2b70e6d74f

View file

@ -89,7 +89,7 @@ constexpr ShiftedDcId uploadDcId(DcId dcId, int index) {
// send(req, callbacks, MTP::uploadDcId(index)) - for upload shifted dc id
// uploading always to the main dc so BareDcId(result) == 0
inline ShiftedDcId uploadDcId(int index) {
Expects(index >= 0 && index < cNetUploadSessionsCount());
Expects(index >= 0 && index < kUploadSessionsCountMax);
return details::uploadDcId(0, index);
};